Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e25a8f

Browse files
committed
Merge 3.5
2 parents 4d45be7 + 861f067 commit 0e25a8f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Python/random.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ py_getentropy(unsigned char *buffer, Py_ssize_t size, int fatal)
111111

112112
#else
113113

114+
/* Issue #25003: Don' use getentropy() on Solaris (available since
115+
* Solaris 11.3), it is blocking whereas os.urandom() should not block. */
114116
#if defined(HAVE_GETRANDOM) || defined(HAVE_GETRANDOM_SYSCALL)
115117
#define PY_GETRANDOM 1
116118

0 commit comments

Comments
 (0)