tokio-rs / turmoil

Add hardship to your tests
MIT License
714 stars 43 forks source link

Document determinism guidelines #19

Open mcches opened 1 year ago

mcches commented 1 year ago

Turmoil is built on the concept of deterministic execution. Using structures such as HashMap initialize with non-deterministic RandomState. Both the internals of turmoil and applications using it need to buy in.

e.g. HashMap, HashSet, tokio::select!, etc.

Document the guidelines.

mcches commented 1 year ago

Related: https://github.com/tokio-rs/turmoil/issues/16