Skip to content

Commit 4b99803

Browse files
authored
doc: Clarify os.urandom return type (python#30282)
Other descriptions in the same file also use 'bytestring' to refer to bytes objects
1 parent 2d10fa9 commit 4b99803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/os.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4879,7 +4879,7 @@ Random numbers
48794879

48804880
.. function:: urandom(size)
48814881

4882-
Return a string of *size* random bytes suitable for cryptographic use.
4882+
Return a bytestring of *size* random bytes suitable for cryptographic use.
48834883

48844884
This function returns random bytes from an OS-specific randomness source. The
48854885
returned data should be unpredictable enough for cryptographic applications,

0 commit comments

Comments
 (0)