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

This commit is contained in:
Antoine Pitrou 2013-08-16 19:20:04 +02:00
commit 53e5b5e581
1 changed files with 3 additions and 3 deletions

View File

@ -45,9 +45,9 @@ from sources provided by the operating system.
.. warning::
The generators of the :mod:`random` module should not be used for security
purposes. Use :func:`ssl.RAND_bytes` if you require a cryptographically
secure pseudorandom number generator.
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: