]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-133658)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 31 May 2025 08:23:01 +0000 (11:23 +0300)
committerGitHub <noreply@github.com>
Sat, 31 May 2025 08:23:01 +0000 (11:23 +0300)
commit68784fed78aa297f0de0d038742495709185bef5
treebecda83e907d45d21317db5b6adfd7dd0fc6e3a2
parentc6e63d9d351f6d952000ec3bf84b3a7607989f92
gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-133658)

random.getrandbits() can now generate more that 2**31 bits.
random.randbytes() can now generate more that 256 MiB.
Lib/test/test_random.py
Misc/NEWS.d/next/Library/2025-05-08-13-43-19.gh-issue-133489.9eGS1Z.rst [new file with mode: 0644]
Modules/_randommodule.c
Modules/clinic/_randommodule.c.h
Objects/longobject.c