summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-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)