Mark SodiumRandomGenerator as deprecated

This commit is contained in:
Ben Ramsey
2018-08-11 21:30:34 -05:00
parent 7397e2f431
commit cd92bfa43c
+4
View File
@@ -18,6 +18,10 @@ 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
* random_bytes() function.
* @link http://pecl.php.net/package/libsodium
* @link https://paragonie.com/book/pecl-libsodium
*/