I have a large amount of code that uses rand::thread_rng(). I would like to make this code behave deterministically in tests using something like StdRng::seed_from_u64(...). I'm aware that the 'correct' solution to this problem is to pass around a random number generator to all of my code which I can change at runtime, but changing hundreds of functions to take a new parameter isn't really feasible for me right now. Is there a simple way to just configure thread_rng to be deterministic or make my own version of it?