diff --git a/registry/remote/retry/policy.go b/registry/remote/retry/policy.go index 38e015cc..ebe8b373 100644 --- a/registry/remote/retry/policy.go +++ b/registry/remote/retry/policy.go @@ -96,7 +96,7 @@ func ExponentialBackoff(backoff time.Duration, factor, jitter float64) Backoff { return func(attempt int, resp *http.Response) time.Duration { var h maphash.Hash h.SetSeed(maphash.MakeSeed()) - rand := rand.New(rand.NewPCG(h.Sum64(), 0)) + rand := rand.New(rand.NewPCG(0, h.Sum64())) // check Retry-After if resp != nil && resp.StatusCode == http.StatusTooManyRequests {