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

Guozihua (Scott)
2022-07-18T08:53:15Z

On 2022/7/14 15:33, Guozihua (Scott) wrote:
> 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.

Correction: I mean various open source packages are still using
O_NONBLOCK flag while accessing /dev/random
>
> Would anyone please kindly provide some background knowledge of this
> flag and it's removal? Thanks!
>
--
Best
GUO Zihua