Skip to content

Commit ba69008

Browse files
committed
Issue #16190: fix random module recommendation to use ssl.RAND_bytes().
1 parent 29c3fc5 commit ba69008

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/random.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ from sources provided by the operating system.
4545

4646
.. warning::
4747

48-
The generators of the :mod:`random` module should not be used for security
49-
purposes. Use :func:`ssl.RAND_bytes` if you require a cryptographically
50-
secure pseudorandom number generator.
48+
The pseudo-random generators of this module should not be used for
49+
security purposes. Use :func:`os.urandom` or :class:`SystemRandom` if
50+
you require a cryptographically secure pseudo-random number generator.
5151

5252

5353
Bookkeeping functions:

0 commit comments

Comments
 (0)