From: Setrak Balian Date: Fri, 15 Jan 2021 17:50:42 +0000 (+0000) Subject: bpo-42931: randbytes missing from random.__all__ (GH-24219) X-Git-Tag: v3.10.0a5~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=998ae1fa3fb05a790071217cf8f6ae3a928da13f;p=thirdparty%2FPython%2Fcpython.git bpo-42931: randbytes missing from random.__all__ (GH-24219) --- diff --git a/Lib/random.py b/Lib/random.py index 4142e2e860c8..db0e6c20fcca 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -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 index 000000000000..01f8094944f7 --- /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__``.