aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
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