Lines Matching defs:blocking
86 py_getrandom(void *buffer, Py_ssize_t size, int blocking, int raise)
100 flags = blocking ? 0 : GRND_NONBLOCK;
155 if (errno == EAGAIN && !raise && !blocking) {
444 Prefer getrandom() over getentropy() because getrandom() supports blocking
445 and non-blocking mode: see the PEP 524. Python requires non-blocking RNG at
453 Only the getrandom() function supports non-blocking mode.
473 pyurandom(void *buffer, Py_ssize_t size, int blocking, int raise)
498 res = py_getrandom(buffer, size, blocking, raise);
521 On Linux 3.17 and newer, the getrandom() syscall is used in blocking mode:
576 pyurandom() is non-blocking mode (blocking=0): see the PEP 524. */