[issue21470] Better seeding for the random module
Antoine Pitrou
report at bugs.python.org
Tue May 13 01:41:23 CEST 2014
Antoine Pitrou added the comment:
> The theoretical properties that make the Twister so attractive were
> all proved based on mathematical analysis of its entire period. The
> only way to get at the whole period is to allow for all possible
> seeds.
>
> If the seeds Python can use are drawn from a relatively tiny subset of
> the possible seeds, nothing can be said about most of the "proved
> correct" properties anymore. Maybe they still hold. Maybe they
> don't. In the absence of analysis (which, AFAIK, is still too
> difficult to do), the only way to be safe is to refrain from being so
> bloody "clever" in the interest of saving a few microseconds.
Thanks for the explanation. It's much clearer now.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21470>
_______________________________________
More information about the Python-bugs-list
mailing list