diff options
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/random.c b/Python/random.c index d10dda9..da49bba 100644 --- a/Python/random.c +++ b/Python/random.c @@ -102,7 +102,7 @@ static int py_getentropy(unsigned char *buffer, Py_ssize_t size, int fatal) { while (size > 0) { - Py_ssize_t len = Py_MIN(size, 256); + Py_ssize_t len = size < 256 ? size : 256; int res = getentropy(buffer, len); if (res < 0) { if (fatal) { |