Lines Matching refs:raise
47 API. Return 0 on success, or raise an exception and return -1 on error. */
49 win32_urandom(unsigned char *buffer, Py_ssize_t size, int raise)
57 if (raise) {
78 initialized yet) and raise=0.
79 - Raise an exception (if raise is non-zero) and return -1 on error:
80 if getrandom() failed with EINTR, raise is non-zero and the Python signal
86 py_getrandom(void *buffer, Py_ssize_t size, int blocking, int raise)
114 if (raise) {
126 if (raise) {
155 if (errno == EAGAIN && !raise && !blocking) {
160 if (raise) {
170 if (raise) {
190 - Raise an exception (if raise is non-zero) and return -1 on error:
191 if getentropy() failed with EINTR, raise is non-zero and the Python signal
199 py_getentropy(char *buffer, Py_ssize_t size, int raise)
207 py_getentropy(char *buffer, Py_ssize_t size, int raise)
223 if (raise) {
242 if (raise) {
252 if (raise) {
275 - Raise an exception (if raise is non-zero) and return -1 on error
300 dev_urandom(char *buffer, Py_ssize_t size, int raise)
305 if (raise) {
432 - Raise an exception (if raise is non-zero) and return -1 on error
465 If raise is zero:
467 - Don't raise an exception on error
473 pyurandom(void *buffer, Py_ssize_t size, int blocking, int raise)
480 if (raise) {
492 return win32_urandom((unsigned char *)buffer, size, raise);
498 res = py_getrandom(buffer, size, blocking, raise);
500 res = py_getentropy(buffer, size, raise);
513 return dev_urandom(buffer, size, raise);
573 and so exceptions cannot be used (use raise=0).