mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 22:12:40 +02:00
util/nvmutil: simplify flags on urandom
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -718,12 +718,12 @@ static void
|
||||
open_dev_urandom(void)
|
||||
{
|
||||
rname = newrandom;
|
||||
urandom_fd = open(rname, O_RDONLY | O_BINARY | O_NONBLOCK);
|
||||
urandom_fd = open(rname, O_RDONLY);
|
||||
if (urandom_fd != -1)
|
||||
return;
|
||||
|
||||
rname = oldrandom;
|
||||
urandom_fd = open(rname, O_RDONLY | O_BINARY | O_NONBLOCK);
|
||||
urandom_fd = open(rname, O_RDONLY);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user