Mark MtRandGenerator and OpenSslGenerator as deprecated

This commit is contained in:
Ben Ramsey
2018-08-11 21:23:49 -05:00
parent 5d5eab97ee
commit 7397e2f431
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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
+4
View File
@@ -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