Home | History | Annotate | Download | only in Python

Lines Matching refs:getrandom

85 /* Call getrandom() to get random bytes:
88 - Return 0 if getrandom() is not available (failed with ENOSYS or EPERM),
89 or if getrandom(GRND_NONBLOCK) failed with EAGAIN (system urandom not
92 if getrandom() failed with EINTR, raise is non-zero and the Python signal
93 handler raised an exception, or if getrandom() failed with a different
96 getrandom() is retried if it failed with EINTR: interrupted by a signal. */
100 /* Is getrandom() supported by the running kernel? Set to 0 if getrandom()
116 /* Issue #26735: On Solaris, getrandom() is limited to returning up
128 n = getrandom(dest, n, flags);
132 n = getrandom(dest, n, flags);
136 expose the Linux getrandom() syscall yet. See:
157 /* getrandom(GRND_NONBLOCK) fails with EAGAIN if the system urandom
173 /* retry getrandom() if it was interrupted by a signal */
429 - getrandom() function (ex: Linux and Solaris): call py_getrandom()
433 Read from the /dev/urandom device if getrandom() or getentropy() function
436 Prefer getrandom() over getentropy() because getrandom() supports blocking
441 Prefer getrandom() and getentropy() over reading directly /dev/urandom
445 Only the getrandom() function supports non-blocking mode.
499 /* getrandom() or getentropy() function is not available: failed with
511 On Linux 3.17 and newer, the getrandom() syscall is used in blocking mode:
525 On Linux 3.17 and newer (when getrandom() syscall is used), if the system