Skip to content

Commit 5326f5c

Browse files
committed
fix rand call
1 parent 474167c commit 5326f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/google/api_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def execute!(*params)
594594
tries = 1 + (options[:retries] || self.retries)
595595
Retriable.retriable :tries => tries,
596596
:on => [TransmissionError],
597-
:interval => lambda {|attempts| (2 ** attempts) + Random.rand} do
597+
:interval => lambda {|attempts| (2 ** attempts) + rand} do
598598
result = request.send(connection, true)
599599

600600
case result.status

0 commit comments

Comments
 (0)