Sample Header Ad - 728x90

FreeBSD: how can I check if `/dev/random` is blocking?

0 votes
1 answer
343 views
So this exact question has been asked many times about Linux's implementation of /dev/random, but I am struggling to find an answer that is FreeBSD specific. From the FreeBSD [random(4) man page](https://www.freebsd.org/cgi/man.cgi?query=random&sektion=4) : >The generator will start in an unseeded state, and will block reads until it is seeded for the first time. This may cause trouble at system boot when keys and the like are generated from random so steps should be taken to ensure a seeding as soon as possible. I ask this question because I would prefer that my scripts exit with an error instead of hanging because /dev/random has not been seeded yet.
Asked by Harold Fischer (1974 rep)
Aug 18, 2019, 02:29 AM
Last activity: Oct 21, 2024, 07:00 PM