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

Donald Stufft report at bugs.python.org
Tue Jun 7 16:34:03 EDT 2016


Donald Stufft added the comment:

Thanks for weighing in Theodore, I think that matches what Colm's last suggestion was, and what I was personally OK with. To seed our SipHash function using GRND_NONBLOCK since it's likely that will be fine, and worst case we're just using it for some hash tables.

Then for our os.urandom binding, we should use getrandom() without GRND_NONBLOCK since we don't know why someone is calling os.urandom, but we know in practice people are using it for cryptographic keys and the like.

----------

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


More information about the Python-bugs-list mailing list