-
Notifications
You must be signed in to change notification settings - Fork 762
mpl, par: move to boost random number generator due to bug in STL #7136
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
mpl, par: move to boost random number generator due to bug in STL #7136
Conversation
uniform_real has a bug in it where it can sometimes return 1.0 for a range when it's supposed to return [0,1.0). Lesson is don't use real for this purpose use int distribution. See the compiler bugs listed on this page for more info. https://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution Signed-off-by: Ethan Mahintorabi <[email protected]>
Signed-off-by: Ethan Mahintorabi <[email protected]>
Signed-off-by: Ethan Mahintorabi <[email protected]>
Signed-off-by: Ethan Mahintorabi <[email protected]>
Signed-off-by: Ethan Mahintorabi <[email protected]>
Signed-off-by: Arthur Koucher <[email protected]>
Signed-off-by: Arthur Koucher <[email protected]>
|
clang-tidy review says "All clean, LGTM! 👍" |
|
@QuantamHD I opened this PR due to some merge conflicts that emerged in your PR. I resolved them and ran a Secure-CI whose needed metrics updates are being addressed in #3075 . Apologies for the delay with these changes, they ended up revealing some nasty bugs that took quite a while to understand. I hope we can move on with the changes here. The ownership of your updates are preserved. |
|
❤️ |
|
This is really awesome work. Thanks so much for your time in debugging these complex issues. |
Signed-off-by: Arthur Koucher <[email protected]>
|
clang-tidy review says "All clean, LGTM! 👍" |
Replaces #6649.