Closed DillonSimeone closed 4 years ago
For some reason the random engine used in snippet_library::random_from_category
returns the same value for different seed values.
Edit: seems that uniform_int_distribution
produces significant bias when the random engine is cata_default_random_engine
aka minstd_rand0
and the seed is small (see this stackoverflow question). We should either revert snippet_library::random_from_category
to use std::mt19937
again or use std::mt19937
for cata_default_random_engine
instead. @jbytheway What's your opinion?
Describe the bug
When you're hacking lab computers to read the research logs, you'll get the same log on each hacks.
Steps To Reproduce
Expected behavior
Different logs are shown at random.
I know about the other logs because that was how it used to be a long time ago, with your odd of failure going up the more you hacked to get at the deeper logs.
Screenshots
Versions and configuration
Additional context