]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42931: randbytes missing from random.__all__ (GH-24219)
authorSetrak Balian <setrak@faculty.ai>
Fri, 15 Jan 2021 17:50:42 +0000 (17:50 +0000)
committerGitHub <noreply@github.com>
Fri, 15 Jan 2021 17:50:42 +0000 (09:50 -0800)
Lib/random.py
Misc/NEWS.d/next/Library/2021-01-15-00-23-50.bpo-42931.QD6U2B.rst [new file with mode: 0644]

index 4142e2e860c8c58576653ac96ac1aef368ba7c33..db0e6c20fccac63cb50bce514d5ca62f1e191776 100644 (file)
@@ -78,6 +78,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 (file)
index 0000000..01f8094
--- /dev/null
@@ -0,0 +1 @@
+Add :func:`randbytes` to ``random.__all__``.