aboutsummaryrefslogtreecommitdiff
path: root/src/platform/posix/posix_rand_getentropy.c
Commit message (Collapse)AuthorAge
* posix: add getentropy() based RNGGarrett D'Amore2024-10-06
XPG8 defines getentropy() as the only good source for random numbers. However, real world use a bit more nuanced. On BSD systems, we would prefer to use arc4random as it avoids unnecessary system calls. On Linux however, getentropy is implemented in terms of getrandom, and should be used directly when available.