Skip to content

Commit

Permalink
doc: Clarify os.urandom return type (#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
  • Loading branch information
The-Compiler committed Jan 19, 2022
1 parent 2d10fa9 commit 4b99803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/os.rst
Expand Up @@ -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,
Expand Down

0 comments on commit 4b99803

Please sign in to comment.