mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-17 00:02:49 -04:00
use SecureRandom.gen_random, which is also supported in ruby 2.3, and is where SecureRandom.bytes defers to
This commit is contained in:
parent
94074088b8
commit
2a93eae907
@ -112,7 +112,7 @@ module HTTPX
|
||||
end
|
||||
|
||||
def ping
|
||||
ping = SecureRandom.bytes(8)
|
||||
ping = SecureRandom.gen_random(8)
|
||||
@connection.ping(ping)
|
||||
ensure
|
||||
@pings << ping
|
||||
|
Loading…
x
Reference in New Issue
Block a user