]> git.meshlink.io Git - meshlink/commitdiff
Replace rand() by xoshiro256** with per-mesh state.
authorGuus Sliepen <guus@meshlink.io>
Sat, 5 Oct 2019 17:40:15 +0000 (19:40 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sat, 5 Oct 2019 17:40:15 +0000 (19:40 +0200)
We need a reasonable fast PRNG that doesn't have to be secure, for things
like timer randomization, port number generation and so on. Already some
platforms warn about the use of rand(). Also, when calling fork(), both
parent and child have the same PRNG seed, which causes some inefficiencies
in the test suite.


No differences found