mirror of https://github.com/python/cpython
Merge 3.5 (os.urandom)
This commit is contained in:
commit
f716e74d5a
|
@ -142,7 +142,6 @@ py_getrandom(void *buffer, Py_ssize_t size, int raise)
|
|||
}
|
||||
|
||||
if (errno == EINTR) {
|
||||
/* Note: EINTR should not occur with flags=0 */
|
||||
if (PyErr_CheckSignals()) {
|
||||
if (!raise)
|
||||
Py_FatalError("getrandom() interrupted by a signal");
|
||||
|
|
Loading…
Reference in New Issue