at 17.09-beta 657 B view raw
1https://bugs.python.org/issue29157 2https://github.com/python/cpython/commit/01bdbad3e951 3diff --git a/Python/random.c b/Python/random.c 4index 2f83b5d..0b775ec 100644 5--- a/Python/random.c 6+++ b/Python/random.c 7@@ -98,7 +98,7 @@ win32_urandom(unsigned char *buffer, Py_ssize_t size, int raise) 8 9 /* Issue #25003: Don't use getentropy() on Solaris (available since 10 * Solaris 11.3), it is blocking whereas os.urandom() should not block. */ 11-#elif defined(HAVE_GETENTROPY) && !defined(sun) 12+#elif defined(HAVE_GETENTROPY) && !defined(sun) && !defined(linux) 13 #define PY_GETENTROPY 1 14 15 /* Fill buffer with size pseudo-random bytes generated by getentropy().