[issue27288] secrets should use getrandom() on Linux

Steven D'Aprano report at bugs.python.org
Sat Jun 11 03:56:05 EDT 2016


Steven D'Aprano added the comment:

I don't want to start another huge thread on python-dev unless really necessary. What should happen to random.SystemRandom?

(1) nothing, it stays as it is, and if ``secrets`` needs better, it can subclass it;

(2) it changes to use ``os.getrandom``, and then ``secrets`` can continue to expose ``SystemRandom``.

If it comes to a vote, I'm +1 on option 2.

----------

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


More information about the Python-bugs-list mailing list