aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptography/hazmat/backends/openssl/urand_engine.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptography/hazmat/backends/openssl/urand_engine.py b/cryptography/hazmat/backends/openssl/urand_engine.py
index 0004c50c..705ff092 100644
--- a/cryptography/hazmat/backends/openssl/urand_engine.py
+++ b/cryptography/hazmat/backends/openssl/urand_engine.py
@@ -103,7 +103,7 @@ static int urandom_rand_bytes(unsigned char *buffer, int size) {
}
while (size > 0) {
- chunk = size > INT_MAX ? INT_MAX : size;
+ chunk = size;
if (!CryptGenRandom(hCryptProv, (DWORD)chunk, buffer)) {
return 0;
}