You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That code isn’t doing what you think; when you seed an rng object (StableRNGs or otherwise) it only affect that specific rng object. You can’t change the global rng in Julia. So the only way to use StableRNGs is to pass the rng object into functions that accept an rng instead of only allowing the global rng.
I’ll close this issue since we can’t change how that works here but feel free to ask if you have questions, here or on http://discourse.julialang.org/.
Hi Folks,
We want to use
StableRNGs
for stable streams but there is the following bug:Random.Seed! using StableRNGs does not work
This gives me a different answer everytime.
Random.Seed! using Random works
This is static and fine.
Thanks for the help!
The text was updated successfully, but these errors were encountered: