Freeing rng