use SecureRandom.gen_random, which is also supported in ruby 2.3, and is where SecureRandom.bytes defers to

This commit is contained in:
HoneyryderChuck 2020-05-06 13:47:57 +01:00
parent 94074088b8
commit 2a93eae907

View File

@ -112,7 +112,7 @@ module HTTPX
end
def ping
ping = SecureRandom.bytes(8)
ping = SecureRandom.gen_random(8)
@connection.ping(ping)
ensure
@pings << ping