Skip to content

bpo-18407: win32_urandom() uses PY_DWORD_MAX#10656

Merged
vstinner merged 2 commits into
python:masterfrom
vstinner:random_dword
Nov 22, 2018
Merged

bpo-18407: win32_urandom() uses PY_DWORD_MAX#10656
vstinner merged 2 commits into
python:masterfrom
vstinner:random_dword

Conversation

@vstinner

@vstinner vstinner commented Nov 22, 2018

Copy link
Copy Markdown
Member

CryptGenRandom() maximum size is PY_DWORD_MAX, not INT_MAX.

Co-Authored-By: Jeremy Kloth jeremy.kloth@gmail.com

https://bugs.python.org/issue18407

CryptGenRandom() maximum size is PY_DWORD_MAX, not INT_MAX.

Co-Authored-By: Jeremy Kloth <jeremy.kloth@gmail.com>
@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