summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lib/rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/libreboot-utils/lib/rand.c')
-rw-r--r--util/libreboot-utils/lib/rand.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c
index 726d5cd2..8e50e110 100644
--- a/util/libreboot-utils/lib/rand.c
+++ b/util/libreboot-utils/lib/rand.c
@@ -154,7 +154,7 @@ retry_rand: {
while (rw_retry(saved_errno,
rc = read_on_eintr(fd,
- (unsigned char *)buf + off, n - off, 0)));
+ (unsigned char *)buf + off, n - off)));
#elif defined(__linux__)
long rc;
while (sys_retry(saved_errno,
@@ -183,10 +183,6 @@ retry_rand: {
reset_caller_errno(0);
return;
err:
-#if defined(USE_URANDOM) && \
- ((USE_URANDOM) > 0)
- close_on_eintr(&fd);
-#endif
(void) with_fallback_errno(ECANCELED);
exitf("Randomisierungsfehler");
exit(EXIT_FAILURE);