aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2017-06-04 11:51:31 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2017-06-04 05:51:31 -1000
commit140ec5d6e2167692ba5619b368f44a1b07f96a4a (patch)
treee804653178111b5ce7501194048883bb086bbf90 /docs
parent1a5d70e876346653b3dfa2a95f188ef0eb92bd7d (diff)
downloadcryptography-140ec5d6e2167692ba5619b368f44a1b07f96a4a.tar.gz
cryptography-140ec5d6e2167692ba5619b368f44a1b07f96a4a.tar.bz2
cryptography-140ec5d6e2167692ba5619b368f44a1b07f96a4a.zip
Fixes #2347 -- link to the stdlib secrets module in our random number generation section (#3669)
Diffstat (limited to 'docs')
-rw-r--r--docs/random-numbers.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/random-numbers.rst b/docs/random-numbers.rst
index 8c6b9fdb..c6acd5b1 100644
--- a/docs/random-numbers.rst
+++ b/docs/random-numbers.rst
@@ -29,4 +29,9 @@ If you need your random number as an integer (for example, for
>>> serial = int.from_bytes(os.urandom(20), byteorder="big")
+Starting with Python 3.6 the `standard library includes`_ the ``secrets``
+module, which can be used for generating cryptographically secure random
+numbers, with specific helpers for text-based formats.
+
.. _`always use your operating system's provided random number generator`: https://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/
+.. _`standard library includes`: https://docs.python.org/3/library/secrets.html