summaryrefslogtreecommitdiff
path: root/test/test_securerandom.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_securerandom.rb')
-rw-r--r--test/test_securerandom.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_securerandom.rb b/test/test_securerandom.rb
index 69d24c0417..1bc35f91f8 100644
--- a/test/test_securerandom.rb
+++ b/test/test_securerandom.rb
@@ -184,4 +184,11 @@ end
assert_equal(idx, @it.send(:gen_random_openssl, idx).size)
end
end
+
+ def test_repeated_gen_random
+ assert_nothing_raised NoMethodError, '[ruby-core:92633] [Bug #15847]' do
+ @it.gen_random(1)
+ @it.gen_random(1)
+ end
+ end
end