summaryrefslogtreecommitdiff
path: root/pyconfig.h.in
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-10-01 09:47:30 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-10-01 09:47:30 +0200
commitbae2d6203fca3ecaaf9fbc7cee84ad83ddf52dc5 (patch)
tree495b0afaa05b7c0d235af2e54c70015b16f4d2e3 /pyconfig.h.in
parent87bddbac9d178b549fac830adc76bc8f100b2a47 (diff)
downloadcpython-git-bae2d6203fca3ecaaf9fbc7cee84ad83ddf52dc5.tar.gz
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 0d40c94cd4..b0cafb3185 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