diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-28 09:03:18 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-28 09:03:18 +0000 |
| commit | 6643d9c1fa4d62e648d93ffc2841465d6422da22 (patch) | |
| tree | 197ca3e8add5b89609618d9938b0fc4cfe2f4ab5 /util/libreboot-utils/lib/rand.c | |
| parent | 4ecdadb7a601b0613e65bf8547d17b39ed87153f (diff) | |
lbutils: unify xopen and open_on_eintr
use open_on_eintr for gbe files
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/rand.c')
| -rw-r--r-- | util/libreboot-utils/lib/rand.c | 2 |
1 files changed, 1 insertions, 1 deletions
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__) |
