Skip to content

Commit

Permalink
Replace rand.Seed with recommended rand.NewSource to fix lint err…
Browse files Browse the repository at this point in the history
…or (#1933)
  • Loading branch information
misraved authored Oct 5, 2023
1 parent f5795b2 commit 518407d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ func getClientWithMaxRetries(ctx context.Context, d *plugin.QueryData, region st
// Add the retryer definition
retryer := retry.NewStandard(func(o *retry.StandardOptions) {
// reseting state of rand to generate different random values
rand.Seed(time.Now().UnixNano())
rand.New(rand.NewSource(time.Now().UnixNano()))
o.MaxAttempts = maxRetries
o.MaxBackoff = 5 * time.Minute
o.RateLimiter = NoOpRateLimit{} // With no rate limiter
Expand Down

0 comments on commit 518407d

Please sign in to comment.