Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(1)  |  Import(0)
Base implementation class for random number generators.  Works
by requesting a bunch of bytes via self._prng, and doling them
out piecemeal via self.getBytes.

src/m/i/mixminion-HEAD/lib/mixminion/testSupport.py   mixminion(Download)
class CyclicRNG(mixminion.Crypto.RNG):
    def __init__(self):
        mixminion.Crypto.RNG.__init__(self,4096)
        self.idx = 0
        self.pattern = "".join(map(chr,range(256)))