saving std.random RNG state
harfel
dadapapa at gmail.com
Mon Dec 17 22:20:54 UTC 2018
I am looking for a way to serialize/deserialize the state of the
std.random.Random number generator, ideally using orange
(https://github.com/jacob-carlborg/orange) or another
serialization library. From looking at the module source code, I
understand how to seed a random number generator with the state
of another, but I do find a way to access the RNG's state, since
it is hidden away in a private attribute. What is the recommended
solution for this? Thanks in advance!
More information about the Digitalmars-d-learn
mailing list