There was an error while loading. Please reload this page.
1 parent c99f647 commit b6bbfd9Copy full SHA for b6bbfd9
2 files changed
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c
@@ -69,7 +69,7 @@
69
#endif
70
71
#ifdef HAVE_SYS_RANDOM_H
72
-# include <sys/random.h>
+# include <sys/random.h> // getrandom()
73
74
75
#ifdef HAVE_SYS_UIO_H
@@ -17388,14 +17388,14 @@ os_fspath_impl(PyObject *module, PyObject *path)
17388
os.getrandom
17389
17390
size: Py_ssize_t
17391
- flags: int=0
+ flags: unsigned_int(bitwise=True) = 0
17392
17393
Obtain a series of random bytes.
17394
[clinic start generated code]*/
17395
17396
static PyObject *
17397
-os_getrandom_impl(PyObject *module, Py_ssize_t size, int flags)
17398
-/*[clinic end generated code: output=b3a618196a61409c input=59bafac39c594947]*/
+os_getrandom_impl(PyObject *module, Py_ssize_t size, unsigned int flags)
+/*[clinic end generated code: output=c2163c05f0e1d0a1 input=e0174983f5703f82]*/
17399
{
17400
if (size < 0) {
17401
errno = EINVAL;
0 commit comments