aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-12-18 21:31:28 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-12-18 21:31:59 -0800
commit2d6bb0bd96190ee504f9e8c215bb3a7ed56358f2 (patch)
treee8c1629499492ef9ecf22708a37d60a13e181354
parentc8c3331afdff6cc9558843a60a82f1858825ace1 (diff)
downloadcryptography-2d6bb0bd96190ee504f9e8c215bb3a7ed56358f2.tar.gz
cryptography-2d6bb0bd96190ee504f9e8c215bb3a7ed56358f2.tar.bz2
cryptography-2d6bb0bd96190ee504f9e8c215bb3a7ed56358f2.zip
Let people who are curious know how os.urandom is implemented
-rw-r--r--docs/random-numbers.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/random-numbers.rst b/docs/random-numbers.rst
index 68a72cf7..5113afd2 100644
--- a/docs/random-numbers.rst
+++ b/docs/random-numbers.rst
@@ -18,4 +18,7 @@ can obtain them with:
>>> import os
>>> iv = os.urandom(16)
+This will use ``/dev/urandom`` on UNIX platforms, and ``CryptGenRandom`` on
+Windows.
+
.. _`always use your operating system's provided random number generator`: http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/