[issue26839] Python 3.5 running on Linux kernel 3.17+ can block at startup or on importing the random module on getrandom()

Stefan Krah report at bugs.python.org
Tue Jun 7 06:44:50 EDT 2016


Stefan Krah added the comment:

On Tue, Jun 07, 2016 at 10:01:16AM +0000, STINNER Victor wrote:
> Maybe need something like time.get_clock_info(), sys.float_info and sys.thread_info for os.urandom(): a string describing the implementation of os.urandom(). It would allow the developer to decide what to do when getrandom() is not used.

I think this is a very good idea. Just a flag for "cryptographically secure" or not.

----------

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


More information about the Python-bugs-list mailing list