lib/randutils: remove superfluous continue
Addresses: fa94979207 (commitcomment-24678670)
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
a1a41597bf
commit
43dc893449
|
@ -109,13 +109,10 @@ void random_get_bytes(void *buf, size_t nbytes)
|
|||
n -= x;
|
||||
cp += x;
|
||||
lose_counter = 0;
|
||||
} else if (errno == ENOSYS) { /* kernel without getrandom() */
|
||||
} else if (errno == ENOSYS) /* kernel without getrandom() */
|
||||
break;
|
||||
else if (lose_counter++ > 16) /* entropy problem? */
|
||||
break;
|
||||
} else {
|
||||
if (lose_counter++ > 16) /* entropy problem? */
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (errno == ENOSYS)
|
||||
|
|
Loading…
Reference in New Issue