Free rng in permutations without hashing.