madsim-rs/madsim

Creating multiple runtimes with the same seed yields different random values

tomasol opened this issue · 2 comments

Steps to reproduce:
Sequentially create multiple runtimes from madsim::runtime::Builder with the same seed
Print getrandom::getrandom in each simulation

The first value is different, then all other values are the the same, e.g.

[114]
[139]
[139]
[139]
...

Reproducer

Hi, thanks for your feedback! We have fixed this bug and released a new version 0.2.27.

Great, thanks. I found this issue while I was verifying determinism manually, but I will create a follow-up issue for it.