Skip to content

Commit ea3951c

Browse files
committed
Return instead of break
1 parent 0fad9f5 commit ea3951c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reseeding.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<R: Rng, Rsdr: Reseeder<R>> ReseedingRng<R, Rsdr> {
6868
if e.kind.should_wait() {
6969
// Delay reseeding
7070
self.bytes_until_reseed = self.threshold >> 8;
71-
break;
71+
return;
7272
} else if e.kind.should_retry() {
7373
if err_count > 4 { // arbitrary limit
7474
// TODO: log details & cause?

0 commit comments

Comments
 (0)