-
Notifications
You must be signed in to change notification settings - Fork 22
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
define RNG seed for all dependencies #413
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #413 +/- ##
=======================================
Coverage 77.75% 77.75%
=======================================
Files 69 69
Lines 5481 5481
=======================================
Hits 4262 4262
Misses 1219 1219
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -41,6 +41,8 @@ const CONSTANT = Float64 | |||
const LIM_TOL = 1e-6 | |||
const XY_COORDS = @NamedTuple{x::Float64, y::Float64} | |||
|
|||
const RNG_SEED = get(ENV, "SIENNA_RNG_SEED", 2017) |
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.
Can you give an example of how setting the environment variable will be used? The value will be set the first time the code is compiled.
@daniel-thom I am trying to make something like this where we just need to define this once. It will be useful here and in PRASInterface.jl |
I'm still not following
|
This PR adds a constant for the random seed to be used by any RNG in the platform