expose resample_rng