Hacker News new | ask | show | jobs
by the8472 3618 days ago
Or one could just use the syscall[0] which does the right thing™. If no flags are provided it only blocks at boot until the pool is properly seeded and then becomes nonblocking until shutdown.

[0] http://man7.org/linux/man-pages/man2/getrandom.2.html