|
|
| __init__(self,
numbytes=160,
cipher=None,
hash=None) |
|
|
|
|
| _updateEntropyEstimate(self,
nbits) |
|
|
|
|
_randomize(self,
N=0,
devname='/dev/urandom')
_randomize(N, DEVNAME:device-filepath)
collects N bits of randomness from some entropy source (e.g.,
/dev/urandom on Unixes that have it, Windows CryptoAPI
CryptGenRandom, etc)
DEVNAME is optional, defaults to /dev/urandom. |
|
|
|
|
randomize(self,
N=0)
randomize(N:int)
use the class entropy source to get some entropy data. |
|
|
|
|
stir_n(N)
stirs the random pool N times |
|
|
|
|
stir(self,
s='')
stir(s:string)
Mix up the randomness pool. |
|
|
|
|
get_bytes(self,
N)
get_bytes(N:int) : string
Return N bytes of random data. |
|
|
|
|
add_event(self,
s='')
add_event(s:string)
Add an event to the random pool. |
|
|
|
|
|
|
|
|
|
|
_addBytes(self,
s)
XOR the contents of the string S into the random pool |
|
|
|
|
|
|
|
addEvent(self,
event,
s='') |
|
|