aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-01-15 10:21:52 -0800
committerGitHub <noreply@github.com>2021-01-15 10:21:52 -0800
commit17c1f0c8cb96637c36548edf6e4570ac7564004b (patch)
tree265696e7b84e981136f10ff4dece0af733f0eba5
parentDocs: Remove stray semicolon in init.rst (GH-23974) (diff)
downloadcpython-17c1f0c8cb96637c36548edf6e4570ac7564004b.tar.gz
cpython-17c1f0c8cb96637c36548edf6e4570ac7564004b.tar.bz2
cpython-17c1f0c8cb96637c36548edf6e4570ac7564004b.zip
bpo-42931: randbytes missing from random.__all__ (GH-24219) (GH-24225)
-rw-r--r--Lib/random.py1
-rw-r--r--Misc/NEWS.d/next/Library/2021-01-15-00-23-50.bpo-42931.QD6U2B.rst1
2 files changed, 2 insertions, 0 deletions
diff --git a/Lib/random.py b/Lib/random.py
index a6454f520df..190df6a8c3a 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -77,6 +77,7 @@ __all__ = [
"lognormvariate",
"normalvariate",
"paretovariate",
+ "randbytes",
"randint",
"random",
"randrange",
diff --git a/Misc/NEWS.d/next/Library/2021-01-15-00-23-50.bpo-42931.QD6U2B.rst b/Misc/NEWS.d/next/Library/2021-01-15-00-23-50.bpo-42931.QD6U2B.rst
new file mode 100644
index 00000000000..01f8094944f
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-01-15-00-23-50.bpo-42931.QD6U2B.rst
@@ -0,0 +1 @@
+Add :func:`randbytes` to ``random.__all__``.