Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oo01oo
Copy link

@oo01oo oo01oo commented Feb 15, 2024

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

To avoid problems with the quality of randomness, it is better for the distribution to be bound to a reference to the engine rather than a copy. This change adds an include for <functional>, which appears missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant