[issue27288] secrets should use getrandom() on Linux

Donald Stufft report at bugs.python.org
Fri Jun 10 15:58:59 EDT 2016


Donald Stufft added the comment:

As an additional aside, the documentation of secrets references the documentation of random.py for it's secrets.SystemRandom class, however random.py docouments random.SystemRandom as using os.urandom.

So the documentation for secrets.SystemRandom should be disentangled from the documentation of random.SystemRandom so that it can choose to use the stronger randomness function (or random.SystemRandom should be adapted to use the stronger randomness function, or both things).

----------

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


More information about the Python-bugs-list mailing list