]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
doc: Clarify os.urandom return type (GH-30282)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 19 Jan 2022 22:07:47 +0000 (14:07 -0800)
committerGitHub <noreply@github.com>
Wed, 19 Jan 2022 22:07:47 +0000 (14:07 -0800)
Other descriptions in the same file also use 'bytestring' to refer to bytes objects
(cherry picked from commit 4b99803b861e58eb476a7a30e2e8aacdec5df104)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
Doc/library/os.rst

index f8d567af48466e65165e27243ee54dd82cb055c8..d70f403e8cf1f3acd9a50af3d901199989ddabf8 100644 (file)
@@ -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,