Skip to content

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

Merged
merged 1 commit into from
Apr 13, 2024
Merged

Use StableRNG in tests #278

merged 1 commit into from
Apr 13, 2024

Conversation

kimikage
Copy link
Collaborator

@kimikage kimikage commented Apr 5, 2024

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 of rand.
On the other hand, since StableRNGs are not part of stdlib, I added the tests for the default RNG.

Copy link

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.05%. Comparing base (ca600b0) to head (4aab0af).

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.
📢 Have feedback on the report? Share it here.

@kimikage kimikage force-pushed the stablerng branch 2 times, most recently from 6026d3b to abe561b Compare April 6, 2024 01:19
@kimikage
Copy link
Collaborator Author

kimikage commented Apr 6, 2024

xref: #277 (comment)

Copy link
Collaborator

@johnnychen94 johnnychen94 left a 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 !

@kimikage kimikage mentioned this pull request Apr 13, 2024
@kimikage kimikage merged commit af56dd1 into JuliaMath:master Apr 13, 2024
@kimikage kimikage deleted the stablerng branch April 13, 2024 12:38
@kimikage kimikage mentioned this pull request Apr 30, 2024
38 tasks
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request Apr 30, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request Apr 30, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 28, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 28, 2024
kimikage added a commit that referenced this pull request May 28, 2024
This also backports the changes in PR #270, #278.
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.

2 participants