'Crypto.Util.randpool.RandomPool'

def runTest(self):

    from Crypto.Util.randpool import RandomPool
    sys.stderr.write('SelfTest:    You    can    ignore    the    RandomPool_DeprecationWarning    that    follows.\n')
    rpool = RandomPool()
    x = rpool.get_bytes(16)
    y = rpool.get_bytes(16)
    self.assertNotEqual(x, y)
    self.assertNotEqual(rpool.entropy, 0)
    rpool.randomize()
    rpool.stir('foo')
    rpool.add_event('foo')
