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

Make random test less likely to fail #26961

Merged
merged 1 commit into from
May 3, 2018
Merged

Make random test less likely to fail #26961

merged 1 commit into from
May 3, 2018

Conversation

mbauman
Copy link
Sponsor Member

@mbauman mbauman commented May 2, 2018

Previously, one of Random's tests was checking rand(s) != rand(s), where s was a 11001-length range. This is expected to have a one-in-11001 chance of failure, and indeed it has caused at least one CI failure. This changes it to something much less likely to spuriously fail -- if I have my probabilities right here I think it'd be on the order of 10^-20.

Previously, one of Random's tests was checking `rand(s) != rand(s)`, where `s` was a 11001-length range.  This is expected to have a one-in-11001 chance of failure, and indeed it has caused at least one CI failure. This changes it to something much less likely to spuriously fail -- if I have my probabilities right here I think it'd be on the order of 10^-20.
@mbauman mbauman added test This change adds or pertains to unit tests randomness Random number generation and the Random stdlib labels May 2, 2018
@Keno Keno merged commit fe99c4a into master May 3, 2018
@mbauman mbauman deleted the mb/randomerrandom branch May 3, 2018 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
randomness Random number generation and the Random stdlib test This change adds or pertains to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants