mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Let people who are curious know how os.urandom is implemented
This commit is contained in:
parent
c8c3331afd
commit
2d6bb0bd96
1 changed files with 3 additions and 0 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Reference in a new issue