Closed
Description
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)).
Metadata
Metadata
Assignees
Labels
No labels