2 ms·
By default with gcc and clang on Linux, random_engine will use /dev/urandom. I use /dev/random and configured it with rng-tools. With rng-tools you can configu
by 29athrowaway 7y ago
By default with gcc and clang on Linux, random_engine will use /dev/urandom.
I use /dev/random and configured it with rng-tools. With rng-tools you can configure the sources of entropy for rngd.
You can add a hw random number as entropy source there. Just do not add more entropy than the size of the entropy pool or your system performance will suffer.
Some people discard a number of generated values to make it harder to guess the internal state of the generator. discard_block_engine can be used for this too.
Anyways, if you want to test your random numbers try https://webhome.phy.duke.edu/~rgb/General/dieharder.php https://webhome.phy.duke.edu/~rgb/General/dieharder.php