summaryrefslogtreecommitdiff
path: root/doc/api/rand.rst
blob: 6c2a5f3fa1b4359a82ecb18c7668d024b2108c52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.. _openssl-rand:

:mod:`rand` --- An interface to the OpenSSL pseudo random number generator
==========================================================================

.. warning::
   Functions from this methods shouldn't be used.
   `Use urandom <http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/>`_ instead.


.. py:module:: OpenSSL.rand
   :synopsis: An interface to the OpenSSL pseudo random number generator


This module handles the OpenSSL pseudo random number generator (PRNG) and declares the following:

.. autofunction:: add

.. autofunction:: bytes

.. autofunction:: cleanup

.. autofunction:: egd(path[, bytes])

.. autofunction:: load_file(filename[, bytes])

.. autofunction:: seed

.. autofunction:: status

.. autofunction:: write_file


.. function:: screen

    Add the current contents of the screen to the PRNG state.

    Availability: Windows.

    :return: :obj:`None`


.. autoexception:: Error