[issue27266] Always use getrandom() in os.random() on Linux and add block=False parameter to os.urandom()

STINNER Victor report at bugs.python.org
Thu Jun 9 01:48:09 EDT 2016


STINNER Victor added the comment:

IHMO we only need two functions. os.urandom() is now documented as the
reference for security. So we need a new function. I proposed a new
urandom() parameter, but a new function without parameter would also be ok.

If os.getrandom() is directly a binding of Linux/Solaris getrandom(), I
will not use it since it would not be portable.

----------

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


More information about the Python-bugs-list mailing list