[issue21470] Better seeding for the random module

STINNER Victor report at bugs.python.org
Sun May 11 21:41:48 CEST 2014


STINNER Victor added the comment:

"The default seeding for the random module currently used 32 bytes from urandom() to create the initial state of the random number generator.  This is far less than the number of possible states 2**19937-1."

I suggest to document how the PRNG is initialized instead of reading more bytes from /dev/urandom.

----------
nosy: +haypo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21470>
_______________________________________


More information about the Python-bugs-list mailing list