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 d2b7e08 commit ee07750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/os.rst
Expand Up @@ -4869,7 +4869,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 ee07750

Please sign in to comment.