Set ADDR_NO_RANDOMIZE on linux for determinism

This commit is contained in:
2022-01-28 12:48:59 -05:00
parent 301fe24617
commit 9d7bf8b0f9
4 changed files with 17 additions and 3 deletions

View File

@@ -252,6 +252,10 @@ static void fill_stdio_pollfd(PollVector &pollvec, int &mstimeout, bool read_con
if (mstimeout > 100) mstimeout = 100;
}
static void disable_randomization(int argc, char *argv[]) {
// Do nothing.
}
class MonoClock {
public:
double freq_;