Skip to content
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

Reproducible random sequence generator #171

Open
Notgnoshi opened this issue Mar 3, 2024 · 0 comments
Open

Reproducible random sequence generator #171

Notgnoshi opened this issue Mar 3, 2024 · 0 comments
Labels
general Supports _general_ generative art Rust tool a new tool, or an enhancement to an existing one

Comments

@Notgnoshi
Copy link
Owner

Notgnoshi commented Mar 3, 2024

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

@Notgnoshi Notgnoshi added tool a new tool, or an enhancement to an existing one general Supports _general_ generative art Rust labels Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general Supports _general_ generative art Rust tool a new tool, or an enhancement to an existing one
Projects
None yet
Development

No branches or pull requests

1 participant