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.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/openssl/test_random.rb b/test/openssl/test_random.rb
index 8c69d5431c..0d6289c09e 100644
--- a/test/openssl/test_random.rb
+++ b/test/openssl/test_random.rb
@@ -11,6 +11,7 @@ class OpenSSL::TestRandom < Test::Unit::TestCase
end
def test_pseudo_bytes
+ return unless defined?(OpenSSL::Random.pseudo_bytes)
assert_equal("", OpenSSL::Random.pseudo_bytes(0))
assert_equal(12, OpenSSL::Random.pseudo_bytes(12).bytesize)
end