1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Mersenne Twister isn't cryptographically secure [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2020-11-27 12:44:45 +09:00
parent ead32e6e64
commit eca854041f
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -1672,7 +1672,8 @@ rb_reset_random_seed(void)
* marshaled, allowing sequences to be saved and resumed.
*
* PRNGs are currently implemented as a modified Mersenne Twister with a period
* of 2**19937-1.
* of 2**19937-1. As this algorithm is _not_ for cryptographical use, you must
* use SecureRandom for security purpose, instead of this PRNG.
*/
void