-
Notifications
You must be signed in to change notification settings - Fork 57
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
RNG is not thread safe. #72
Comments
The following indicates that the method threw due to encountering 100 zeros in succession. The only explanations I can think of are lack of thread safety (which is documented) or flawed RNG implementation.
|
The zero return failure can be resolved by bounding the distribution: std::uniform_int_distribution<uint64_t> distribution(begin, end); Although this does not resolve the core issue (of 100 zero returns from the RNG). |
In order to provide efficient thread safety the generator needs to be moved to thread local storage. |
Police Terror:
The text was updated successfully, but these errors were encountered: