Skip to content

Commit

Permalink
doc: Clarify os.urandom return type (GH-30282)
Browse files Browse the repository at this point in the history
Other descriptions in the same file also use 'bytestring' to refer to bytes objects
(cherry picked from commit 4b99803)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
  • Loading branch information
miss-islington and The-Compiler committed Jan 19, 2022
1 parent 54fedda commit 981c1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/os.rst
Expand Up @@ -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,
Expand Down

0 comments on commit 981c1dc

Please sign in to comment.