added control of PRNG seed