added prng seed initialization