Hacker News new | ask | show | jobs
by LoganDark 783 days ago
I would recommend keeping one handle open to /dev/urandom rather than opening and closing a new one every single time you generate a new random number.
1 comments

Or use the getrandom() syscall.