diff options
author | Adam Goodman <akgood@duosecurity.com> | 2014-07-23 15:11:46 -0400 |
---|---|---|
committer | Adam Goodman <akgood@duosecurity.com> | 2014-07-23 15:11:46 -0400 |
commit | e97ae127f9fc44098f2461a567aa6b9a61e37f5c (patch) | |
tree | 671df50035c3daadb26ddb081e36493c610828e5 /docs/random-numbers.rst | |
parent | ab3093ffe7dcc058cbd1b22ecb32b715ca47d6d2 (diff) | |
parent | ad116e26d102651ab6dc2752ae21afb92b72ad6f (diff) | |
download | cryptography-e97ae127f9fc44098f2461a567aa6b9a61e37f5c.tar.gz cryptography-e97ae127f9fc44098f2461a567aa6b9a61e37f5c.tar.bz2 cryptography-e97ae127f9fc44098f2461a567aa6b9a61e37f5c.zip |
Merge branch 'master' into reorder_libs
Diffstat (limited to 'docs/random-numbers.rst')
-rw-r--r-- | docs/random-numbers.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/random-numbers.rst b/docs/random-numbers.rst index 12969d1c..68a72cf7 100644 --- a/docs/random-numbers.rst +++ b/docs/random-numbers.rst @@ -13,10 +13,9 @@ 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: -.. code-block:: pycon +.. doctest:: >>> import os - >>> os.urandom(16) - '...' + >>> iv = os.urandom(16) .. _`always use your operating system's provided random number generator`: http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ |