Jonathan Ballet | 6381da3 | 2011-07-20 16:43:38 +0900 | [diff] [blame] | 1 | .. _openssl-rand: |
| 2 | |
Hynek Schlawack | 80d005f | 2015-10-20 18:34:13 +0200 | [diff] [blame] | 3 | :mod:`rand` --- An interface to the OpenSSL pseudo random number generator |
| 4 | ========================================================================== |
| 5 | |
| 6 | .. warning:: |
Hynek Schlawack | d367dbc | 2015-10-21 11:22:01 +0200 | [diff] [blame] | 7 | Functions from this module shouldn't be used. |
Hynek Schlawack | 80d005f | 2015-10-20 18:34:13 +0200 | [diff] [blame] | 8 | `Use urandom <http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/>`_ instead. |
| 9 | |
Jonathan Ballet | 6381da3 | 2011-07-20 16:43:38 +0900 | [diff] [blame] | 10 | |
Jonathan Ballet | c9e066c | 2011-07-17 22:56:05 +0900 | [diff] [blame] | 11 | .. py:module:: OpenSSL.rand |
Jonathan Ballet | 6381da3 | 2011-07-20 16:43:38 +0900 | [diff] [blame] | 12 | :synopsis: An interface to the OpenSSL pseudo random number generator |
Jonathan Ballet | c9e066c | 2011-07-17 22:56:05 +0900 | [diff] [blame] | 13 | |
Jonathan Ballet | c9e066c | 2011-07-17 22:56:05 +0900 | [diff] [blame] | 14 | |
Hynek Schlawack | 80d005f | 2015-10-20 18:34:13 +0200 | [diff] [blame] | 15 | This module handles the OpenSSL pseudo random number generator (PRNG) and declares the following: |
Jonathan Ballet | c9e066c | 2011-07-17 22:56:05 +0900 | [diff] [blame] | 16 | |
Hynek Schlawack | 80d005f | 2015-10-20 18:34:13 +0200 | [diff] [blame] | 17 | .. autofunction:: add |
Jonathan Ballet | c9e066c | 2011-07-17 22:56:05 +0900 | [diff] [blame] | 18 | |
Hynek Schlawack | 80d005f | 2015-10-20 18:34:13 +0200 | [diff] [blame] | 19 | .. autofunction:: bytes |
| 20 | |
| 21 | .. autofunction:: cleanup |
| 22 | |
| 23 | .. autofunction:: egd(path[, bytes]) |
| 24 | |
| 25 | .. autofunction:: load_file(filename[, bytes]) |
| 26 | |
| 27 | .. autofunction:: seed |
| 28 | |
| 29 | .. autofunction:: status |
| 30 | |
| 31 | .. autofunction:: write_file |
Jonathan Ballet | 648875f | 2011-07-16 14:14:58 +0900 | [diff] [blame] | 32 | |
| 33 | |
Hynek Schlawack | 80d005f | 2015-10-20 18:34:13 +0200 | [diff] [blame] | 34 | .. function:: screen |
Jonathan Ballet | c9e066c | 2011-07-17 22:56:05 +0900 | [diff] [blame] | 35 | |
| 36 | Add the current contents of the screen to the PRNG state. |
| 37 | |
| 38 | Availability: Windows. |
| 39 | |
Hynek Schlawack | 80d005f | 2015-10-20 18:34:13 +0200 | [diff] [blame] | 40 | :return: :obj:`None` |
Jonathan Ballet | c9e066c | 2011-07-17 22:56:05 +0900 | [diff] [blame] | 41 | |
| 42 | |
Hynek Schlawack | 80d005f | 2015-10-20 18:34:13 +0200 | [diff] [blame] | 43 | .. autoexception:: Error |