Correct a typo introduced in r153575, which gives inverted logic when
handling blocking semantics when seeding. PR: kern/143298 Submitted by: James Juran <james juran baesystems com> Reviewed by: markm MFC after: 3 days
This commit is contained in:
parent
7ad65edee3
commit
498b4407b9
@ -391,7 +391,7 @@ random_yarrow_block(int flag)
|
||||
mtx_lock(&random_reseed_mtx);
|
||||
|
||||
/* Blocking logic */
|
||||
while (random_systat.seeded && !error) {
|
||||
while (!random_systat.seeded && !error) {
|
||||
if (flag & O_NONBLOCK)
|
||||
error = EWOULDBLOCK;
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user