summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorWolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>2018-04-17 15:16:17 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2018-04-17 15:16:17 (GMT)
commitba3a87aca37cec5b1ee32cf68f4a254fa0bb2bec (patch)
tree4352a84a350b5170a7ec2c519e4c49906b8bc339 /Misc
parent28e8b66d6c632552765b5fb4573b7f3c9decc3c1 (diff)
downloadcpython-ba3a87aca37cec5b1ee32cf68f4a254fa0bb2bec.zip
cpython-ba3a87aca37cec5b1ee32cf68f4a254fa0bb2bec.tar.gz
cpython-ba3a87aca37cec5b1ee32cf68f4a254fa0bb2bec.tar.bz2
bpo-33144: random.Random and subclasses: split _randbelow implementation (GH-6291)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2018-04-10-14-50-30.bpo-33144.iZr4et.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-04-10-14-50-30.bpo-33144.iZr4et.rst b/Misc/NEWS.d/next/Library/2018-04-10-14-50-30.bpo-33144.iZr4et.rst
new file mode 100644
index 0000000..eb6b9b7f
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-04-10-14-50-30.bpo-33144.iZr4et.rst
@@ -0,0 +1,4 @@
+``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.