Merge branch '21666-provision-test-improvement'
[arvados.git] / services / api / config / initializers / request_id_middleware.rb
index e2158801e7618ba47dd756c55d497f17c6616679..cfb018ca9705dcc18a2ee53defbd9468a33d2a90 100644 (file)
@@ -14,7 +14,7 @@ module CustomRequestId
   end
 
   def internal_request_id
-    "req-" + Random::DEFAULT.rand(2**128).to_s(36)[0..19]
+    "req-" + Random.new.rand(2**128).to_s(36)[0..19]
   end
 end
 
@@ -22,4 +22,4 @@ class ActionDispatch::RequestId
   # Instead of using the default UUID-like format for X-Request-Id headers,
   # use our own.
   prepend CustomRequestId
-end
\ No newline at end of file
+end