Package NX :: Module utils :: Class SecureRandom
[frames | no frames]

Type SecureRandom

object --+        
         |        
    Random --+    
             |    
        Random --+
                 |
                SecureRandom


This class replaces the random number generator in Python with /dev/random or /dev/urandom. If you create an instance and put it in random._inst then the usual Python random calls will use /dev/random as the underlying random number generator.


Method Summary
  __init__(self, paranoid)
  getstate(self)
Return internal state; can be passed to setstate() later.
  jumpahead(self, ignore)
  random(self)
  seed(self, ignore)
  setstate(self, ignore)
Inherited from Random: __getstate__, __reduce__, __setstate__, betavariate, choice, expovariate, gammavariate, gauss, lognormvariate, normalvariate, paretovariate, randint, randrange, sample, shuffle, uniform, vonmisesvariate, weibullvariate
Inherited from object: __delattr__, __hash__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variable Summary
Inherited from Random: VERSION

Method Details

getstate(self)

Return internal state; can be passed to setstate() later.

Overrides:
random.Random.getstate (inherited documentation)

Generated by Epydoc 2.1 on Mon Apr 11 10:59:20 2005 http://epydoc.sf.net