Message ID | 1669891.oFFFdJQWCi@positron.chronox.de (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Herbert Xu |
Headers | show |
diff --git a/drivers/char/random.c b/drivers/char/random.c index 0158d3b..58d9b7f 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -984,7 +984,8 @@ static void xfer_secondary_pool(struct entropy_store *r, size_t nbytes) if (r->limit == 0 && random_min_urandom_seed) { unsigned long now = jiffies; - if (time_before(now, + if (r->initialized && + time_before(now, r->last_pulled + random_min_urandom_seed * HZ)) return; r->last_pulled = now;