Closed Fethbita closed 3 weeks ago
One problem with this solution is that if there are multiple tests that require different values, it won't work. The Default trait can be implemented only a single time.
Made the requested changes. Thanks for the comments.
Give an example showing how to make a MockRng struct and use it instead, providing a default RNG as well as recommended in https://github.com/rust-random/rand/issues/1319.
Feel free to change the explanation or edit the code or leave feedback.