зеркало из https://github.com/github/ruby.git
[DOC] Mersenne Twister isn't cryptographically secure [ci skip]
This commit is contained in:
Родитель
ead32e6e64
Коммит
eca854041f
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче