1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

test_http11: make Digestuse thread-safe (#2744)

This commit is contained in:
Patrik Ragnarsson 2021-11-02 22:52:39 +01:00 committed by GitHub
parent f8acac1f07
commit 1e4372cca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,9 +132,9 @@ class Http11ParserTest < Minitest::Test
res = count.to_s + "/"
if readable
res << Digest::SHA1.hexdigest(rand(count * 100).to_s) * (count / 40)
res << Digest(:SHA1).hexdigest(rand(count * 100).to_s) * (count / 40)
else
res << Digest::SHA1.digest(rand(count * 100).to_s) * (count / 20)
res << Digest(:SHA1).digest(rand(count * 100).to_s) * (count / 20)
end
res