]> granicus.if.org Git - python/commit
Don't use getentropy() on Linux
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 9 Jan 2017 10:10:41 +0000 (11:10 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 9 Jan 2017 10:10:41 +0000 (11:10 +0100)
commit01bdbad3e951014c58581635b94b22868537901c
tree7aaccd80fef5b218e8b21b95b64aea6b3e5b98d5
parent98b1c82675a419ddfe9f4673fc4a88feaf8363c9
Don't use getentropy() on Linux

Issue #29188: Support glibc 2.24 on Linux: don't use getentropy() function but
read from /dev/urandom to get random bytes, for example in os.urandom().  On
Linux, getentropy() is implemented which getrandom() is blocking mode, whereas
os.urandom() should not block.
Misc/NEWS
Python/random.c