Issue #16190: fix random module recommendation to use ssl.RAND_bytes().
This commit is contained in:
commit
53e5b5e581
|
@ -45,9 +45,9 @@ from sources provided by the operating system.
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
|
|
||||||
The generators of the :mod:`random` module should not be used for security
|
The pseudo-random generators of this module should not be used for
|
||||||
purposes. Use :func:`ssl.RAND_bytes` if you require a cryptographically
|
security purposes. Use :func:`os.urandom` or :class:`SystemRandom` if
|
||||||
secure pseudorandom number generator.
|
you require a cryptographically secure pseudo-random number generator.
|
||||||
|
|
||||||
|
|
||||||
Bookkeeping functions:
|
Bookkeeping functions:
|
||||||
|
|
Loading…
Reference in New Issue