if __name__ == '__main__':
    seed1 = '123'
seed2 = 'asd'
rows, cols = 100, 3
mu, sd = 0, 1
r1 = next(reikna_norm_rng(seed1, rows, cols, mu, sd))
r2 = next(reikna_norm_rng(seed2, rows, cols, mu, sd))
r3 = next(reikna_norm_rng(seed1, rows, cols, mu, sd))
r4 = next(reikna_norm_rng(seed2, rows, cols, mu, sd))
err1 = r1 - r3
err2 = r2 - r4
print(('all(err1 == 0):', np.all(err1 == 0)))
print(('all(err2 == 0):', np.all(err2 == 0)))
Regenerate vector of randoms in Python