mirror of https://github.com/ARMmbed/mbed-os.git
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. |
||
---|---|---|
.. | ||
randLIB.c |