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

Add an option to fix the randomness in an experiment #511

Open
devos50 opened this issue Feb 23, 2022 · 2 comments
Open

Add an option to fix the randomness in an experiment #511

devos50 opened this issue Feb 23, 2022 · 2 comments

Comments

@devos50
Copy link
Contributor

devos50 commented Feb 23, 2022

We occasionally use the random module to generate random numbers. We could consider making our experiments more deterministic by seeding the randomness. This could be an experiment option. Note that this will likely not take away all randomness in experiments since network latencies might impact the order of events.

@kozlovsky
Copy link
Contributor

But will it provide the necessary determinism? The random generator is not the only source of randomness in the experiment involving multiple nodes. Even with fixed pseudo-randomness, the experiment result will still be indeterministic because the exact timing of nodes' start and communication delays will depend on the entire DAS state. As a result, nodes may process messages in a different order, even with a fixed seed, and the experiment results will still be different.

@devos50
Copy link
Contributor Author

devos50 commented Feb 27, 2022

@kozlovsky no it doesn't but that also not the end goal (as I also stated in the OP):

Note that this will likely not take away all randomness in experiments since network latencies might impact the order of events.

Uncertainties stemming from the network/system are unavoidable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants