]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
doc: Clarify os.urandom return type (#30282)
authorFlorian Bruhin <me@the-compiler.org>
Wed, 19 Jan 2022 21:22:15 +0000 (22:22 +0100)
committerGitHub <noreply@github.com>
Wed, 19 Jan 2022 21:22:15 +0000 (13:22 -0800)
Other descriptions in the same file also use 'bytestring' to refer to bytes objects

Doc/library/os.rst

index eb3035344455ffccfb0507175ee8aa1ba686e8aa..234ea3238ef9988d8add8fbbe6438ee93b991d8b 100644 (file)
@@ -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,