mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 14:12:44 +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)
|
open_dev_urandom(void)
|
||||||
{
|
{
|
||||||
rname = newrandom;
|
rname = newrandom;
|
||||||
urandom_fd = open(rname, O_RDONLY | O_BINARY | O_NONBLOCK);
|
urandom_fd = open(rname, O_RDONLY);
|
||||||
if (urandom_fd != -1)
|
if (urandom_fd != -1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
rname = oldrandom;
|
rname = oldrandom;
|
||||||
urandom_fd = open(rname, O_RDONLY | O_BINARY | O_NONBLOCK);
|
urandom_fd = open(rname, O_RDONLY);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user