Skip to content

Commit

Permalink
fix: ignore false positive gosec failure in wait package (filecoin-pr…
Browse files Browse the repository at this point in the history
  • Loading branch information
iand authored Mar 12, 2021
1 parent e4d8f43 commit 5691280
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wait/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func Until(ctx context.Context, f func(context.Context) error) error {

// Jitter returns a random duration ranging from base to base+base*factor
func Jitter(base time.Duration, factor float64) time.Duration {
//nolint:gosec
return base + time.Duration(float64(base)*factor*rand.Float64())
}

Expand Down

0 comments on commit 5691280

Please sign in to comment.