cpython/Misc/NEWS.d/next/Library/2018-04-10-14-50-30.bpo-331...

5 lines
302 B
ReStructuredText

``random.Random()`` and its subclassing mechanism got optimized to check only
once at class/subclass instantiation time whether its ``getrandbits()`` method
can be relied on by other methods, including ``randrange()``, for the
generation of arbitrarily large random integers. Patch by Wolfgang Maier.