Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
prefer RDRAND over getrandom() and /dev/urandom when we don't need the very best randomness #10676
This has the benefit that on x86-64 we won't drain the random pool so much.
Whenever we require randomness for the sake of keeping secrets stick to getrandom(), but for stuff such as UUID generation and seed generation for hash tables use RDRAND when it is available.