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

Donald Stufft report at bugs.python.org
Wed Jun 8 20:35:18 EDT 2016


Donald Stufft added the comment:

> Again, I cite #25003: he implicitly ruled there that it's not permissible for os.urandom() to block on Solaris, so I think he agrees with me.

To be clear, that's an entirely different kind of blocking. That made os.urandom on Solaris behave similarly to /dev/random, where it would randomly block for all users of that API regularly. I would have made the same ruling, this blocking is not that blocking.

----------

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


More information about the Python-bugs-list mailing list