mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Merge 3.5 (os.urandom, issue #27278)
This commit is contained in:
commit
370f5136d4
2 changed files with 5 additions and 1 deletions
|
@ -146,7 +146,7 @@ py_getrandom(void *buffer, Py_ssize_t size, int raise)
|
|||
to 1024 bytes */
|
||||
n = Py_MIN(size, 1024);
|
||||
#else
|
||||
n = size;
|
||||
n = Py_MIN(size, INT_MAX);
|
||||
#endif
|
||||
|
||||
errno = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue