diff --git a/vendor/github.com/hashicorp/go-retryablehttp/client.go b/vendor/github.com/hashicorp/go-retryablehttp/client.go index d5be4dbc3..f201b9f31 100644 --- a/vendor/github.com/hashicorp/go-retryablehttp/client.go +++ b/vendor/github.com/hashicorp/go-retryablehttp/client.go @@ -213,7 +213,7 @@ func LinearJitterBackoff(min, max time.Duration, attemptNum int, resp *http.Resp if max <= min { // Unclear what to do here, or they are the same, so return min * // attemptNum - return min * attemptNum + return min * time.Duration(attemptNum) } // Seed rand; doing this every time is fine @@ -222,7 +222,7 @@ func LinearJitterBackoff(min, max time.Duration, attemptNum int, resp *http.Resp // Pick a random number that lies somewhere between the min and max and // multiply by the attemptNum. attemptNum starts at zero so we always // increment here. - return time.Duration((rand.Int63() % int64(max-min)) * attemptNum) + return time.Duration((rand.Int63() % int64(max-min)) * int64(attemptNum)) } // PassthroughErrorHandler is an ErrorHandler that directly passes through the diff --git a/vendor/vendor.json b/vendor/vendor.json index cfb4e74c9..bd4519345 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -1141,10 +1141,10 @@ "revisionTime": "2018-03-31T00:25:53Z" }, { - "checksumSHA1": "Zg/eHcBFPznCeqiRBQeV8WQw9G8=", + "checksumSHA1": "3iOEPoU3QvetU5xPFTg+Oqsl+WU=", "path": "github.com/hashicorp/go-retryablehttp", - "revision": "936ce55c28f313d8cf79061ffcb25a55bf631eb6", - "revisionTime": "2018-05-10T00:49:21Z" + "revision": "7d12bb7d610c15e57fbbe304084a87fe87574591", + "revisionTime": "2018-05-10T00:52:31Z" }, { "checksumSHA1": "A1PcINvF3UiwHRKn8UcgARgvGRs=",