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

Marc-Andre Lemburg report at bugs.python.org
Tue Jun 7 07:31:47 EDT 2016


Marc-Andre Lemburg added the comment:

On 07.06.2016 13:27, Alex Gaynor wrote:
> 
> This doesn't look correct to me. Despite what the Linux maintainers insist, it's a _bug_ that /dev/urandom will return immediately if the system's entropy pool has never been seeded; one of the whole points of the getrandom syscall is that it has the correct behavior (which is the same behavior as BSDs).
> 
> IMO the patch landed this morning should be reverted and it should be left as is.

I'm with Victor and the others on this one. Practicality beats
purity.

----------

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


More information about the Python-bugs-list mailing list