move resample rng type trait into resample.hpp