-
Notifications
You must be signed in to change notification settings - Fork 33
Use StableRNG
in tests
#278
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #278 +/- ##
=======================================
Coverage 97.05% 97.05%
=======================================
Files 7 7
Lines 782 782
=======================================
Hits 759 759
Misses 23 23 ☔ View full report in Codecov by Sentry. |
6026d3b
to
abe561b
Compare
xref: #277 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A harmless change to me.
It's so glad to see you well @kimikage !
This also backports the changes in PR JuliaMath#270, JuliaMath#278
This also backports the changes in PR JuliaMath#270, JuliaMath#278.
Although reproducibility was not guaranteed, the output of
MersenneTwister
seems to have changed.Note that
rand(StableRNG(1234), T)
is not a test for the generated random numbers, but for passing an RNG to the argument ofrand
.On the other hand, since
StableRNGs
are not part of stdlib, I added the tests for the default RNG.