Commit 79a16a85 authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #16190: fix random module recommendation to use ssl.RAND_bytes().

parent 1703df6c
...@@ -60,6 +60,13 @@ The :mod:`random` module also provides the :class:`SystemRandom` class which ...@@ -60,6 +60,13 @@ The :mod:`random` module also provides the :class:`SystemRandom` class which
uses the system function :func:`os.urandom` to generate random numbers uses the system function :func:`os.urandom` to generate random numbers
from sources provided by the operating system. from sources provided by the operating system.
.. warning::
The pseudo-random generators of this module should not be used for
security purposes. Use :func:`os.urandom` or :class:`SystemRandom` if
you require a cryptographically secure pseudo-random number generator.
Bookkeeping functions: Bookkeeping functions:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment