]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42931: randbytes missing from random.__all__ (GH-24219) (GH-24225)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 15 Jan 2021 18:21:52 +0000 (10:21 -0800)
committerGitHub <noreply@github.com>
Fri, 15 Jan 2021 18:21:52 +0000 (10:21 -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 a6454f520df0a321495b5da6f8dade6e4c44036f..190df6a8c3a56cbdc535788f4ce96a9ef6ef8d97 100644 (file)
@@ -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 (file)
index 0000000..01f8094
--- /dev/null
@@ -0,0 +1 @@
+Add :func:`randbytes` to ``random.__all__``.