diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-06-07 09:21:42 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-06-07 09:21:42 (GMT) |
commit | dddf4849ec1750ca02d03b9772eff7141ba626f3 (patch) | |
tree | 1add3bb9de96020956ebf0327c163df13af1bb25 /pyconfig.h.in | |
parent | 6827fd867b9609c405cd25568aa91df1b0d011b4 (diff) | |
download | cpython-dddf4849ec1750ca02d03b9772eff7141ba626f3.zip cpython-dddf4849ec1750ca02d03b9772eff7141ba626f3.tar.gz cpython-dddf4849ec1750ca02d03b9772eff7141ba626f3.tar.bz2 |
os.urandom() doesn't block on Linux anymore
Issue #26839: On Linux, os.urandom() now calls getrandom() with GRND_NONBLOCK
to fall back on reading /dev/urandom if the urandom entropy pool is not
initialized yet. Patch written by Colm Buckley.
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r-- | pyconfig.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in index d432a82..7895535 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -546,6 +546,9 @@ /* Define to 1 if you have the <linux/tipc.h> header file. */ #undef HAVE_LINUX_TIPC_H +/* Define to 1 if you have the <linux/random.h> header file. */ +#undef HAVE_LINUX_RANDOM_H + /* Define to 1 if you have the `lockf' function. */ #undef HAVE_LOCKF |