projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
20846: Remove deprecated Random::DEFAULT usage.
[arvados.git]
/
apps
/
workbench
/
app
/
controllers
/
application_controller.rb
diff --git
a/apps/workbench/app/controllers/application_controller.rb
b/apps/workbench/app/controllers/application_controller.rb
index 3e4502545b5d6103601d201d35135e5cfd592d60..e7441df4beecb0bb3f13214a95f61850be40dade 100644
(file)
--- a/
apps/workbench/app/controllers/application_controller.rb
+++ b/
apps/workbench/app/controllers/application_controller.rb
@@
-588,7
+588,7
@@
class ApplicationController < ActionController::Base
def set_current_request_id
response.headers['X-Request-Id'] =
Thread.current[:request_id] =
- "req-" + Random
::DEFAULT
.rand(2**128).to_s(36)[0..19]
+ "req-" + Random
.new
.rand(2**128).to_s(36)[0..19]
yield
Thread.current[:request_id] = nil
end