summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-06-10 08:07:11 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-06-10 08:07:11 +0000
commit7938606e94f36bdcb5873c5d8fa380878b97a780 (patch)
tree56916f9af55c69a736b7dc4753eb3eb31098931d
parent537066c427027bd03611e0640469fc0471144935 (diff)
downloadcpython-7938606e94f36bdcb5873c5d8fa380878b97a780.tar.gz
Fix typo and move comment to appropriate condition
-rw-r--r--Python/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/random.c b/Python/random.c
index ecfd44bbda..07dacfe188 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -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