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 4b99803b86)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
This commit is contained in:
Miss Islington (bot) 2022-01-19 13:58:13 -08:00 committed by GitHub
parent d2b7e08d86
commit ee07750088
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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