You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::rand::weak_rng should either be removed or return a newtype struct.
The documentation for the fuction claims:
It returns the fastest Rng algorithm currently available in Rust
However current return type, namely XorShiftRng does not account for a possibility of new, faster Rng algorithms being added to the standard library. In case a faster algorithm is added it would be a breaking change to change the return type.
This is something you want to consider for std::rand stabilisation (rand stabilization (search hint)).