generic thread-local rng set