[issue27288] secrets should use getrandom() on Linux

Brett Cannon report at bugs.python.org
Sat Jun 11 14:54:27 EDT 2016


Brett Cannon added the comment:

Based on the documentation of random.SysRandom I think it comes down to #1. Perhaps the secrets documentation simply shouldn't mention the random module beyond how it's different? Then any use of the random module by the secrets module is an implementation detail that people can never rely on because we never said anything in the docs about it and clearly say "we do whatever is necessary to get you the most random bytes possible, backwards-compat be damned in how we pull it off".

----------

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


More information about the Python-bugs-list mailing list