Notgnoshi / generative

Generative art. A suite of composable tools to generate, transform and visualize WKT geometries
MIT License
25 stars 3 forks source link

Reproducible random sequence generator #171

Open Notgnoshi opened 7 months ago

Notgnoshi commented 7 months ago
rand-seq --reset --seed $seed
rand-seq --get-next

somehow save the random generator state between calls - maybe to /tmp/rand-seq/$seed.bin?

Perhaps instead of serializing the generator to save its state, I run rand-seqd in the background, and use a unix socket to poke at it? This might perform better? But be more complex?

Both approaches should have a way to support multiple parallel instances. rand-seq --instance or rand-seqd through an instance flag on the IPC comms