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

Use StableRNG for reliable tests? #351

Closed
vtjnash opened this issue Jun 9, 2021 · 0 comments
Closed

Use StableRNG for reliable tests? #351

vtjnash opened this issue Jun 9, 2021 · 0 comments

Comments

@vtjnash
Copy link

vtjnash commented Jun 9, 2021

It appears the tests are expecting a particularly RNG stream, which is not a feature of Random (even with seed), but is a feature of StableRNG, which may be a near drop-in replacement for it at

Random.seed!(1234)
u = rand(ndofs(dofhandler))

==>

using StableRNG
const testrng = StableRNG(1234)

...
* rand(testrng) *
...

Refs https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_date/2021-06/09/Ferrite.1.7.0-DEV-f442e4230a.log

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

No branches or pull requests

2 participants