Skip to content

Commit 981c1dc

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 54fedda commit 981c1dc

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
@@ -4623,7 +4623,7 @@ Random numbers
46234623

46244624
.. function:: urandom(size)
46254625

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

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

0 commit comments

Comments
 (0)