-
Notifications
You must be signed in to change notification settings - Fork 23
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
Generic gen_seed method #36
Comments
Actually if you have a rng of type However I also believe it might be helpful to generate seeds manually so that the seeds could be stored for later use. The better way is to implement |
Yes, exactly. That is my use case. I want randomly-seeded but reproducible simulations.
OK, but also consider adding |
I see, but I don't know if it's OK to adding that because of https://docs.julialang.org/en/stable/manual/style-guide/#Avoid-confusion-about-whether-something-is-an-instance-or-a-type-1 |
I see that
gen_seed
is a common function for all RNGs inRandomNumbers
. It would be useful to able to callgen_seed(rng)
and have it return the appropriately sized tuple for that rng. This could make code more generic.I can't see whether this is currently possible. My workaround has been:
Not sure if
Base.length
is the right function to extend here, or if there already exists a function for this.The text was updated successfully, but these errors were encountered: