mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Update the deprecation messages
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user