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:
parent
ead32e6e64
commit
eca854041f
1 changed files with 2 additions and 1 deletions
3
random.c
3
random.c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue