TIL about RandomState under std::collections::hash_map. I would have guessed that this was just for HashMap because of the module it is in, but you can use it yourself, too, without pulling in any non-std crates to generate randomness.
#rust #rustlang
about 1 month ago