Skip to content

Commit

Permalink
Return instead of break
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Dec 17, 2017
1 parent 0fad9f5 commit ea3951c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reseeding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl<R: Rng, Rsdr: Reseeder<R>> ReseedingRng<R, Rsdr> {
if e.kind.should_wait() {
// Delay reseeding
self.bytes_until_reseed = self.threshold >> 8;
break;
return;
} else if e.kind.should_retry() {
if err_count > 4 { // arbitrary limit
// TODO: log details & cause?
Expand Down

0 comments on commit ea3951c

Please sign in to comment.