diff options
author | Urabe, Shyouhei <shyouhei@ruby-lang.org> | 2019-05-14 11:44:20 +0900 |
---|---|---|
committer | Urabe, Shyouhei <shyouhei@ruby-lang.org> | 2019-05-14 11:44:20 +0900 |
commit | 5bab1304af25a843728dbcd2f3594913740aecb0 (patch) | |
tree | d4c83aceaff7e3277b85ccb83c9de408aad4f438 /test | |
parent | af1f3f131f6a82f5f06fe5b3adeb6f80cf86b941 (diff) | |
download | ruby-5bab1304af25a843728dbcd2f3594913740aecb0.tar.gz |
fix visibility of SecureRandom.gen_random
Aliasing a method preserves its visibility. These aliases turn
formerly-public methods into private. Should make them public
again. [Bug #15847]
Diffstat (limited to 'test')
-rw-r--r-- | test/test_securerandom.rb | 7 |
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 |