updated rng module