SIGN IN SIGN UP

[3.14] gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-133658) (#134964)

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.
(cherry picked from commit 68784fed78aa297f0de0d038742495709185bef5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
M
Miss Islington (bot) committed
7c1dfd9c988be07c14892177db6b512e4983ca20
Parent: a8708f7
Committed by GitHub <noreply@github.com> on 6/1/2025, 3:02:38 AM