From 9ada760b91258f51dffec8f6394e9a1af01150ec Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 28 Dec 2021 14:12:23 +0100 Subject: [PATCH] doc: Clarify os.urandom return type Other descriptions in the same file also use 'bytestring' to refer to bytes objects --- 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 8e11c693c7c2e7..bde5e52a161869 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -4870,7 +4870,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,