mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Mark MtRandGenerator and OpenSslGenerator as deprecated
This commit is contained in:
@@ -18,6 +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.
|
||||
* @link http://php.net/mt_rand
|
||||
*/
|
||||
class MtRandGenerator implements RandomGeneratorInterface
|
||||
|
||||
@@ -21,6 +21,10 @@ 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
|
||||
* source of randomness. The default RandomBytesGenerator, which uses the
|
||||
* random_bytes() function, is recommended as the safest and most reliable
|
||||
* source of randomness.
|
||||
* @link http://php.net/openssl_random_pseudo_bytes
|
||||
*/
|
||||
class OpenSslGenerator implements RandomGeneratorInterface
|
||||
|
||||
Reference in New Issue
Block a user