Skip to content

Commit ee07750

Browse files
doc: Clarify os.urandom return type (GH-30282)
Other descriptions in the same file also use 'bytestring' to refer to bytes objects (cherry picked from commit 4b99803) Co-authored-by: Florian Bruhin <[email protected]>
1 parent d2b7e08 commit ee07750

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
@@ -4869,7 +4869,7 @@ Random numbers
48694869

48704870
.. function:: urandom(size)
48714871

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

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

0 commit comments

Comments
 (0)