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

Larry Hastings report at bugs.python.org
Wed Jun 8 20:07:00 EDT 2016


Larry Hastings added the comment:

> Regardless of the behavior of os.urandom (and 'import random'), is it agreed that the current state of _PyRandom_Init is acceptable for 3.5.2?

I'll get back to you with a specific yes or no.  What I want is that it the behavior removed where "import random" can block unboundedly on Linux because it's waiting for the entropy pool to fill.  If the code behaves like that, then yes, but I'm not giving it my official blessing until I read it.

----------

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


More information about the Python-bugs-list mailing list