]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40286: Remove C implementation of Random.randbytes() (GH-19797)
authorVictor Stinner <vstinner@python.org>
Wed, 29 Apr 2020 16:49:00 +0000 (18:49 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Apr 2020 16:49:00 +0000 (18:49 +0200)
commit2d8757758d0d75882fef0fe0e3c74c4756b3e81e
tree676e735cf1076bf60f2a7412e67e394e6b0f7948
parente3dfb9b967c560f4d094092dcae4a16fc9634681
bpo-40286: Remove C implementation of Random.randbytes() (GH-19797)

Remove _random.Random.randbytes(): the C implementation of
randbytes(). Implement the method in Python to ease subclassing:
randbytes() now directly reuses getrandbits().
Lib/random.py
Misc/NEWS.d/next/Library/2020-04-29-18-02-16.bpo-40286.txbQNx.rst [new file with mode: 0644]
Modules/_randommodule.c
Modules/clinic/_randommodule.c.h