fix rng init