Skip to content

Commit

Permalink
Mark SodiumRandomGenerator as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Aug 12, 2018
1 parent 7397e2f commit cd92bfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Generator/SodiumRandomGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
* 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
*/
Expand Down

0 comments on commit cd92bfa

Please sign in to comment.