fix rand call
[arvados.git] / lib / google / api_client.rb
index 1d8b170e07e46f60627abe9497c7892d671dbb71..dd8be6ab027bb690815200c9134fbfd96e2dfe0b 100644 (file)
@@ -594,7 +594,7 @@ module Google
       tries = 1 + (options[:retries] || self.retries)
       Retriable.retriable :tries => tries, 
                           :on => [TransmissionError], 
-                          :interval => lambda {|attempts| (2 ** attempts) + Random.rand} do
+                          :interval => lambda {|attempts| (2 ** attempts) + rand} do
         result = request.send(connection, true)
 
         case result.status