summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/libreboot-utils/lib/rand.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c
index 0b156e51..9c1fa4e3 100644
--- a/util/libreboot-utils/lib/rand.c
+++ b/util/libreboot-utils/lib/rand.c
@@ -79,8 +79,10 @@ retry_rand:
(char *)&rval + off, len - off, 0);
if (rc < 0) {
- if (errno == EINTR || errno == EAGAIN)
+ if (errno == EINTR || errno == EAGAIN) {
+ usleep(100);
goto retry_rand;
+ }
goto err; /* possibly unsupported by kernel */
}