You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than using system rand(), provide our own pseudo-RNG.
Generator used is "xoroshiro128+", which has 16 bytes of state and
2^128-1 period.
Main advantage is that we can now seed with up to 128 bits of entropy,
rather than the 32 bits srand() limited us to. We also can be assured of
the quality of the algorithm.
As the core generator is 64-bit, we now provide a get 64-bit function,
and others are based on this.
Incorporate Linux's /dev/urandom use into the main source file.
0 commit comments