I am now fighting a system where getrandom(…, 0) blocks forever, and entropy_avail is always 0, even if uptime is 431 days, and of course there's no way(?) to check if the entropy pool has been initialized. Everything is terrible.
-
-
Replying to @FiloSottile
No way or just no reasonable one? I recall there being a few.
1 reply 0 retweets 0 likes -
Replying to @RichFelker
Nothing short of introspecting a kernel variable?
1 reply 0 retweets 0 likes -
-
Replying to @RichFelker @FiloSottile
IIRC there are other ways too I'll check later when not on mobile browser.
1 reply 0 retweets 0 likes -
Replying to @RichFelker
Nothing in there about the pool being initialized AFAICT.
1 reply 0 retweets 0 likes -
Replying to @FiloSottile
Does entropy_avail not tell you? Sorry if I'm wrong about this.
1 reply 0 retweets 0 likes -
Replying to @RichFelker
Nope, that's the magic /dev/random counter that can go up and back down to 0. /dev/urandom is initialized once 256 (?) bytes of entropy are fed, and until reboot.
1 reply 0 retweets 0 likes
Replying to @FiloSottile
Hmm, doesn't getrandom(&(char){0}, 1, GRND_NONBLOCK) tell you if it's initialized?
7:54 PM - 2 Jul 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.