Replaced the rng by a less entropy-hungry one.