From 6643d9c1fa4d62e648d93ffc2841465d6422da22 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 28 Mar 2026 09:03:18 +0000 Subject: lbutils: unify xopen and open_on_eintr use open_on_eintr for gbe files Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/libreboot-utils/lib/rand.c') diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c index 030ca5ec..9edc8a5b 100644 --- a/util/libreboot-utils/lib/rand.c +++ b/util/libreboot-utils/lib/rand.c @@ -142,7 +142,7 @@ rset(void *buf, size_t n) #if defined(USE_URANDOM) && \ ((USE_URANDOM) > 0) int fd = -1; - open_on_eintr("/dev/urandom", &fd, O_RDONLY, 0400); + open_on_eintr("/dev/urandom", &fd, O_RDONLY, 0400, NULL); retry_rand: if ((rc = read(fd, (unsigned char *)buf + off, n - off)) < 0) { #elif defined(__linux__) -- cgit v1.2.1