Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement non-deterministc mode #683
Part of #653
This allows us to properly implement getrandom(),
This commit adds a new '-Zmiri-seed=' option. When present,
When '-Zmiri-seed' is not passed, 'getrandom()' will be disabled.
This is pretty cool!
To make the test suite pass with your changes to the HashMap tests, you'd have to also implement this for macOS and Windows.
and macOS says
Alternatively, you could make the affected tests linux-only. Then we should open two issues to track the missing support for Windows and macOS.
I've implemented random number generation for Windows.
For now, I've left the test disabled for OS X. Implementing random number generation on OS X will be trickier, since we'll need to handle attempted reads from