[Python-ideas] Python's Source of Randomness and the random.py module Redux
Stephen J. Turnbull
stephen at xemacs.org
Fri Sep 11 06:44:30 CEST 2015
Nick Coghlan writes:
> Implementing dice rolling or number guessing for a game as "from
> random import randint" is *not* a mistake,
Turning the number guessing game into a text CAPTCHA might be one,
though. That randint may as well be crypto strong, modulo the problem
that people who use an explicit seed get punished for knowing what
they're doing.
I suppose it would be too magic to have the seed method substitute the
traditional PRNG for the default, while an implicitly seeded RNG
defaults to a crypto strong algorithm?
Steve
More information about the Python-ideas
mailing list