We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f558778 commit 0c08346Copy full SHA for 0c08346
1 file changed
Python/random.c
@@ -50,7 +50,7 @@ win32_urandom(unsigned char *buffer, Py_ssize_t size, int raise)
50
while (size > 0)
51
{
52
chunk = size > INT_MAX ? INT_MAX : size;
53
- if (!CryptGenRandom(hCryptProv, chunk, buffer))
+ if (!CryptGenRandom(hCryptProv, (DWORD)chunk, buffer))
54
55
/* CryptGenRandom() failed */
56
if (raise)
0 commit comments