From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 19 Jan 2022 22:07:47 +0000 (-0800) Subject: doc: Clarify os.urandom return type (GH-30282) X-Git-Tag: v3.9.11~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=981c1dc8b6a5673aa59a213cd62e7a8a3cb3fdd9;p=thirdparty%2FPython%2Fcpython.git doc: Clarify os.urandom return type (GH-30282) Other descriptions in the same file also use 'bytestring' to refer to bytes objects (cherry picked from commit 4b99803b861e58eb476a7a30e2e8aacdec5df104) Co-authored-by: Florian Bruhin --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index f8d567af4846..d70f403e8cf1 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -4623,7 +4623,7 @@ Random numbers .. function:: urandom(size) - Return a string of *size* random bytes suitable for cryptographic use. + Return a bytestring of *size* random bytes suitable for cryptographic use. This function returns random bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications,