Browse Source

doc: Clarify os.urandom return type (#30282)

Other descriptions in the same file also use 'bytestring' to refer to bytes objects
pull/30718/head
Florian Bruhin 4 years ago
committed by GitHub
parent
commit
4b99803b86
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Doc/library/os.rst

2
Doc/library/os.rst

@ -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,

Loading…
Cancel
Save