diff --git a/rngd_jitter.c b/rngd_jitter.c index 979e613..54070ae 100644 --- a/rngd_jitter.c +++ b/rngd_jitter.c @@ -168,7 +168,7 @@ int xread_jitter(void *buf, size_t size, struct rng *ent_src) } else if (request < need) { if (request == -1) { message(LOG_DAEMON|LOG_DEBUG, "failed read: %s\n", strerror(errno)); - pthread_yield(); + sched_yield(); } else message(LOG_DAEMON|LOG_DEBUG, "request of random data returns %ld less than need %ld\n", request, need);