codewars / docs

The Codewars Docs :construction: WIP
https://docs.codewars.com
MIT License
55 stars 191 forks source link

Update index.md to wrap PRNG in std::ref for std::bind calls #496

Open oo01oo opened 4 months ago

oo01oo commented 4 months ago

To avoid problems with the quality of randomness, it is better for the distributions to be bound with a reference to the engine rather than a copy. I expand on that in more detail in the test logs of this Kumite.

This change also adds an include for <functional>, which appears missing.

Preview