summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-10-01 07:51:02 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-10-01 07:51:02 (GMT)
commit4d45be776c4af14537244305a0218075cbad8648 (patch)
treefbbfa6590b7e2043e95dd3ee9b35ff1e6548c0eb
parent4241bcd4e1bd612b53cde3341ea80bf23efdf74b (diff)
parentbae2d6203fca3ecaaf9fbc7cee84ad83ddf52dc5 (diff)
downloadcpython-4d45be776c4af14537244305a0218075cbad8648.zip
cpython-4d45be776c4af14537244305a0218075cbad8648.tar.gz
cpython-4d45be776c4af14537244305a0218075cbad8648.tar.bz2
Merge 3.5
-rw-r--r--Python/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/random.c b/Python/random.c
index 8caaa95..1d57b1b 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -73,7 +73,7 @@ win32_urandom(unsigned char *buffer, Py_ssize_t size, int raise)
}
#elif defined(HAVE_GETENTROPY) && !defined(sun)
-#define PY_GETENTROPY
+#define PY_GETENTROPY 1
/* Fill buffer with size pseudo-random bytes generated by getentropy().
Return 0 on success, or raise an exception and return -1 on error.
@@ -112,7 +112,7 @@ py_getentropy(unsigned char *buffer, Py_ssize_t size, int fatal)
#else
#if defined(HAVE_GETRANDOM) || defined(HAVE_GETRANDOM_SYSCALL)
-#define PY_GETRANDOM
+#define PY_GETRANDOM 1
static int
py_getrandom(void *buffer, Py_ssize_t size, int raise)