From b395c88145ccb8a7f7b1e1c0f477260e75fcee49 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 19 Jan 2022 22:22:15 +0100 Subject: [PATCH] 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 --- Doc/library/os.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/os.rst b/Doc/library/os.rst index f8d567af48466e..d70f403e8cf1f3 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,