

def gen(self):
    for i in range(self.length):
        y = ((self.mt[i] & self.bitPow_31) + (self.mt[((i + 1) % self.length)] & (self.bitPow_31 - 1)))
        self.mt[i] = (self.mt[((i + 397) % self.length)] ^ (y >> 1))
        if (y % 2):
            self.mt[i] ^= 2567483615

dataset/ETHPy150Open reschly/cryptopals/prob21.py operaRandom.gen/original