Home
/
Python 3.11
/
OS
/
urandom
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
OS
urandom
Python 3.11
Return a bytestring of size random bytes suitable for cryptographic use.
Syntax
PYTHON
Copy
os.urandom(size, /)
See Also
getrandom()
GRND_NONBLOCK
NotImplementedError
secrets
random.SystemRandom