Home | Trees | Indices | Help |
|
---|
|
Module containing a cryptographic-quality source of randomness and other cryptographically useful functionality
Python 2.4 needs no external support for this module, nor does Python 2.3 on a system with /dev/urandom.
Other configurations will need a quality source of random bytes and access to a function that will convert binary strings to long integers. This module will work with the Python Cryptography Toolkit (pycrypto) if it is present. pycrypto can be found with a search engine, but is currently found at:
http://www.amk.ca/python/code/crypto
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Function Details |
Choose a random item from range(start, stop[, step]). This fixes the problem with randint() which includes the endpoint; in Python this is usually not what you want. Do not supply the 'int', 'default', and 'maxwidth' arguments. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 29 15:11:26 2010 | http://epydoc.sourceforge.net |