]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo and move comment to appropriate condition
authorMartin Panter <vadmium+py@gmail.com>
Fri, 10 Jun 2016 08:07:11 +0000 (08:07 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Fri, 10 Jun 2016 08:07:11 +0000 (08:07 +0000)
Python/random.c

index ecfd44bbda396c5cc08cc36590946af13b355fe3..07dacfe188e8fb433c30bff70083f30907c88b85 100644 (file)
@@ -75,6 +75,8 @@ win32_urandom(unsigned char *buffer, Py_ssize_t size, int raise)
     return 0;
 }
 
+/* Issue #25003: Don't use getentropy() on Solaris (available since
+ * Solaris 11.3), it is blocking whereas os.urandom() should not block. */
 #elif defined(HAVE_GETENTROPY) && !defined(sun)
 #define PY_GETENTROPY 1
 
@@ -114,8 +116,6 @@ py_getentropy(unsigned char *buffer, Py_ssize_t size, int fatal)
 
 #else
 
-/* Issue #25003: Don' use getentropy() on Solaris (available since
- * Solaris 11.3), it is blocking whereas os.urandom() should not block. */
 #if defined(HAVE_GETRANDOM) || defined(HAVE_GETRANDOM_SYSCALL)
 #define PY_GETRANDOM 1