summaryrefslogtreecommitdiffstats
path: root/pyconfig.h.in
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-10-01 07:47:30 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-10-01 07:47:30 (GMT)
commitbae2d6203fca3ecaaf9fbc7cee84ad83ddf52dc5 (patch)
tree495b0afaa05b7c0d235af2e54c70015b16f4d2e3 /pyconfig.h.in
parent87bddbac9d178b549fac830adc76bc8f100b2a47 (diff)
downloadcpython-bae2d6203fca3ecaaf9fbc7cee84ad83ddf52dc5.zip
cpython-bae2d6203fca3ecaaf9fbc7cee84ad83ddf52dc5.tar.gz
cpython-bae2d6203fca3ecaaf9fbc7cee84ad83ddf52dc5.tar.bz2
Issue #25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom()
function instead of the getentropy() function. The getentropy() function is blocking to generate very good quality entropy, os.urandom() doesn't need such high-quality entropy.
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r--pyconfig.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 0d40c94..b0cafb3 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -395,6 +395,9 @@
/* Define to 1 if you have the `getpwent' function. */
#undef HAVE_GETPWENT
+/* Define to 1 if the getrandom() function is available */
+#undef HAVE_GETRANDOM
+
/* Define to 1 if the Linux getrandom() syscall is available */
#undef HAVE_GETRANDOM_SYSCALL