Update the deprecation messages

This commit is contained in:
Ben Ramsey
2018-08-12 09:40:27 -05:00
parent cd92bfa43c
commit 59c8bb0840
3 changed files with 10 additions and 8 deletions
+4 -4
View File
@@ -18,10 +18,10 @@ namespace Ramsey\Uuid\Generator;
* MtRandRandomGenerator provides functionality to generate strings of random
* binary data using the `mt_rand()` PHP function
*
* @deprecated 4.0.0 The mt_rand() function is not a reliable source of
* randomness. The default RandomBytesGenerator, which uses the
* random_bytes() function, is recommended as the safest and most reliable
* source of randomness.
* @deprecated The mt_rand() function is not a reliable source of randomness.
* The default RandomBytesGenerator, which uses the random_bytes() function,
* is recommended as the safest and most reliable source of randomness.
* <em>This generator will be removed in ramsey/uuid 4.0.0.</em>
* @link http://php.net/mt_rand
*/
class MtRandGenerator implements RandomGeneratorInterface
+2 -1
View File
@@ -21,10 +21,11 @@ namespace Ramsey\Uuid\Generator;
* The use of this generator requires PHP to be compiled using the
* `--with-openssl` option.
*
* @deprecated 4.0.0 The openssl_random_pseudo_bytes() function is not a reliable
* @deprecated The openssl_random_pseudo_bytes() function is not a reliable
* source of randomness. The default RandomBytesGenerator, which uses the
* random_bytes() function, is recommended as the safest and most reliable
* source of randomness.
* <em>This generator will be removed in ramsey/uuid 4.0.0.</em>
* @link http://php.net/openssl_random_pseudo_bytes
*/
class OpenSslGenerator implements RandomGeneratorInterface
+4 -3
View File
@@ -18,10 +18,11 @@ namespace Ramsey\Uuid\Generator;
* SodiumRandomGenerator provides functionality to generate strings of random
* binary data using the PECL libsodium extension
*
* @deprecated 4.0.0 As of PHP 7.2.0, the libsodium extension is bundled with
* PHP, and the random_bytes() PHP function is now the recommended method
* for generating random byes. The default RandomBytesGenerator uses the
* @deprecated As of PHP 7.2.0, the libsodium extension is bundled with PHP, and
* the random_bytes() PHP function is now the recommended method for
* generating random byes. The default RandomBytesGenerator uses the
* random_bytes() function.
* <em>This generator will be removed in ramsey/uuid 4.0.0.</em>
* @link http://pecl.php.net/package/libsodium
* @link https://paragonie.com/book/pecl-libsodium
*/