Notgnoshi / generative

Generative art. A suite of composable tools to generate, transform and visualize WKT geometries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reproducible random sequence generator

Notgnoshi opened this issue · comments

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