From: Florian Bruhin Date: Wed, 19 Jan 2022 21:22:15 +0000 (+0100) Subject: doc: Clarify os.urandom return type (#30282) X-Git-Tag: v3.11.0a5~203 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b99803b861e58eb476a7a30e2e8aacdec5df104;p=thirdparty%2FPython%2Fcpython.git doc: Clarify os.urandom return type (#30282) Other descriptions in the same file also use 'bytestring' to refer to bytes objects --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index eb3035344455..234ea3238ef9 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -4879,7 +4879,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,