From: Antoine Pitrou Date: Fri, 16 Aug 2013 17:19:40 +0000 (+0200) Subject: Issue #16190: fix random module recommendation to use ssl.RAND_bytes(). X-Git-Tag: v3.4.0a2~214^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba69008bd0999d8fd088b8e66caf019baf73c576;p=thirdparty%2FPython%2Fcpython.git Issue #16190: fix random module recommendation to use ssl.RAND_bytes(). --- diff --git a/Doc/library/random.rst b/Doc/library/random.rst index 55c9d7053bd3..11dd367f8af0 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -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: