Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-18407: win32_urandom() uses PY_DWORD_MAX #10656

Merged
merged 2 commits into from
Nov 22, 2018
Merged

bpo-18407: win32_urandom() uses PY_DWORD_MAX #10656

merged 2 commits into from
Nov 22, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 22, 2018

CryptGenRandom() maximum size is PY_DWORD_MAX, not INT_MAX.

Co-Authored-By: Jeremy Kloth [email protected]

https://bugs.python.org/issue18407

CryptGenRandom() maximum size is PY_DWORD_MAX, not INT_MAX.

Co-Authored-By: Jeremy Kloth <[email protected]>
@vstinner vstinner merged commit c48ff73 into python:master Nov 22, 2018
@vstinner vstinner deleted the random_dword branch November 22, 2018 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants