mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
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 68784fed78)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 lines
134 B
ReStructuredText
2 lines
134 B
ReStructuredText
:func:`random.getrandbits` can now generate more that 2\ :sup:`31` bits.
|
|
:func:`random.randbytes` can now generate more that 256 MiB.
|