3 ms·
/dev/urandom is useless because it spews non-random data if it hasn't been seeded yet. Does it? Under what circumstances? Where can I read about it?
by xyzzyz 7y ago
/dev/urandom is useless because it spews non-random data if it hasn't been seeded yet.
Does it? Under what circumstances? Where can I read about it?
- yjftsjthsd-h 7y ago`man 4 random` states, > When read during early boot time, /dev/urandom may return data prior to the entropy pool being initialized. If this is of concern in your application, use getrandom(2) or /dev/random instead.
- CodeHz 7y agoit happened in my system in last boot, dmesg says dbus-daemon tried (twice!) to read urandom before its seeded, and the next message (same second, about 200ms) is about urandom has been seeded, it is a race condition!