]> granicus.if.org Git - python/commitdiff
Issue #16190: fix random module recommendation to use ssl.RAND_bytes().
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 16 Aug 2013 17:19:40 +0000 (19:19 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 16 Aug 2013 17:19:40 +0000 (19:19 +0200)
Doc/library/random.rst

index 55c9d7053bd386ab7a616d15d4cefef137d620c0..11dd367f8af0d684cb2561a77b4999cc71df2117 100644 (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: