Inquiry about the removal of flag O_NONBLOCK on /dev/random

Guozihua (Scott)
2022-07-14T07:34:33Z

Hi Community,

Recently we noticed the removal of flag O_NONBLOCK on /dev/random by
commit 30c08efec888 ("random: make /dev/random be almost like
/dev/urandom"), it seems that some of the open_source packages e.g.
random_get_fd() of util-linux and __getrandom() of glibc. The man page
for random() is not updated either.

Would anyone please kindly provide some background knowledge of this
flag and it's removal? Thanks!

--
Best
GUO Zihua