Skip to content

gh-155742: Use PyBytesWriter in PySSL_RAND() - #157731

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:writer_rand
Sep 18, 2026
Merged

vstinner merged 2 commits into
python:mainfrom
vstinner:writer_rand

Conversation

@vstinner

@vstinner vstinner commented Sep 18, 2026

Copy link
Copy Markdown
Member

Replace soft deprecated PyBytes_FromStringAndSize() with PyBytesWriter.

Remove 'pseudo' parameter of PySSL_RAND(): it's no longer needed since ssl.RAND_pseudo_bytes() has been removed (in 2022, commit d435a18).

Replace soft deprecated PyBytes_FromStringAndSize() with
PyBytesWriter.

Remove 'pseudo' parameter of PySSL_RAND(): it's no longer needed since
ssl.RAND_pseudo_bytes() has been removed (in 2022,
commit d435a18).
@vstinner
vstinner merged commit c7dbdb5 into python:main Sep 18, 2026
51 checks passed
@vstinner
vstinner deleted the writer_rand branch September 18, 2026 13:10
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.

1 participant