-
Notifications
You must be signed in to change notification settings - Fork 91
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
Way to read seed in order to replay next time with it #43
Comments
I'm not sure if this answers your question. |
Sure, but I mean saving some human-readable seed that I can use later in case I'm interested in replaying test suite with it. So as a concrete example - I start my tests and see something like |
You could access the internal values via reflection. Also, I believe |
Thanks for the answer!
This was actually my main concern, but I'm glad it's fine. Anyway, I've created small pull request #44 |
Hi!
I'm about to use RandomKit for unit-testing.
Is there any way to save current seed and be able to create generator with the same seed next time in order to reproduce tests with same generated values?
Something like this, but not to do whole thing every time.
So basically, for Xoroshiro, it would be exposing
_state
variable for read-only purposes.The text was updated successfully, but these errors were encountered: