diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-25 14:12:35 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-25 14:12:35 -0800 |
commit | 3e4729aa62f3515380f864231adf5519911f2384 (patch) | |
tree | 129fbc32144703743f85d3d84d82cc0a2c545030 /docs/random-numbers.rst | |
parent | 763632ceedab37408ed6441b22bac4770c6caee7 (diff) | |
download | cryptography-3e4729aa62f3515380f864231adf5519911f2384.tar.gz cryptography-3e4729aa62f3515380f864231adf5519911f2384.tar.bz2 cryptography-3e4729aa62f3515380f864231adf5519911f2384.zip |
Cite Thomas Ptacek for urandom
Diffstat (limited to 'docs/random-numbers.rst')
-rw-r--r-- | docs/random-numbers.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/random-numbers.rst b/docs/random-numbers.rst index cd73a7b7..12969d1c 100644 --- a/docs/random-numbers.rst +++ b/docs/random-numbers.rst @@ -8,8 +8,8 @@ want to use the standard :mod:`random` module APIs. This is because they do not provide a cryptographically secure random number generator, which can result in major security issues depending on the algorithms in use. -Therefore, it is our recommendation to always use your operating system's -provided random number generator, which is available as ``os.urandom()``. For +Therefore, it is our recommendation to `always use your operating system's +provided random number generator`_, which is available as ``os.urandom()``. For example, if you need 16 bytes of random data for an initialization vector, you can obtain them with: @@ -18,3 +18,5 @@ can obtain them with: >>> import os >>> os.urandom(16) '...' + +.. _`always use your operating system's provided random number generator`: http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ |