Closed devnexen closed 10 months ago
Thank you for this code.
For the posterity, I don't think it's essentially needed, this function is not called frequently. But it has some advantages: no need to open-fd, no need for /dev/urandom to be present (which might not be in some Linux namespaces).
getrandom syscall exists since enough time now (around 3.17) and we save one file descriptor usage.