fixed seeding of rng