diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-06-10 08:38:56 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-06-10 08:38:56 +0000 |
commit | a44d75e5cbf5eff0602ed1a41f8c0c8ecefc123e (patch) | |
tree | f02ae8ac57897c673ba125848ca11d59ed0c9a5d /Python/random.c | |
parent | e74bb5720ab1df7992b7c78492da100abd44e598 (diff) | |
parent | 7938606e94f36bdcb5873c5d8fa380878b97a780 (diff) | |
download | cpython-a44d75e5cbf5eff0602ed1a41f8c0c8ecefc123e.tar.gz |
Merge comment fix from 3.5
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/random.c b/Python/random.c index cd8d945f8f..e4f1e7a48b 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 |