Permalink
Browse files

Merge pull request #4095 from arunagw/using_uuid

Using uuid which is supported in 1.9
  • Loading branch information...
2 parents 893d38d + 0f510e9 commit 1f75a1fea12ead1370113ea1be0272667ab7da88 @josevalim josevalim committed Dec 21, 2011
@@ -33,7 +33,7 @@ def external_request_id(env)
end
def internal_request_id
- SecureRandom.hex(16)
+ SecureRandom.uuid
end
end
end
@@ -14,7 +14,7 @@ class RequestIdTest < ActiveSupport::TestCase
end
test "generating a request id when none is supplied" do
- assert_match(/\w+/, stub_request.uuid)
+ assert_match /\w+-\w+-\w+-\w+-\w+/, stub_request.uuid
end
private

0 comments on commit 1f75a1f

Please sign in to comment.