numpy.random.entropy.random_entropy(size=None, source='system')
Read entropy from the system cryptographic provider
Parameters: |
|
---|---|
Returns: |
|
On Unix-like machines, reads from /dev/urandom
. On Windows machines reads from the RSA algorithm provided by the cryptographic service provider.
This function reads from the system entropy pool and so samples are not reproducible. In particular, it does NOT make use of a BitGenerator, and so seed
and setting state
have no effect.
Raises RuntimeError if the command fails.
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/random/entropy.html