aboutsummaryrefslogtreecommitdiffstats
path: root/test/openssl/test_random.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/openssl/test_random.rb')
-rw-r--r--test/openssl/test_random.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/openssl/test_random.rb b/test/openssl/test_random.rb
index ca8427f751..6079461920 100644
--- a/test/openssl/test_random.rb
+++ b/test/openssl/test_random.rb
@@ -8,7 +8,8 @@ class OpenSSL::TestRandom < OpenSSL::TestCase
end
def test_pseudo_bytes
+ # deprecated as of OpenSSL 1.1.0
assert_equal("", OpenSSL::Random.pseudo_bytes(0))
assert_equal(12, OpenSSL::Random.pseudo_bytes(12).bytesize)
- end
+ end if OpenSSL::Random.methods.include?(:pseudo_bytes)
end if defined?(OpenSSL::TestCase)