| commit | 01bdbad3e951014c58581635b94b22868537901c | [log] [tgz] |
|---|---|---|
| author | Victor Stinner <victor.stinner@gmail.com> | Mon Jan 09 11:10:41 2017 +0100 |
| committer | Victor Stinner <victor.stinner@gmail.com> | Mon Jan 09 11:10:41 2017 +0100 |
| tree | 7aaccd80fef5b218e8b21b95b64aea6b3e5b98d5 | |
| parent | 98b1c82675a419ddfe9f4673fc4a88feaf8363c9 [diff] |
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.