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 /lib | |
parent | af1f3f131f6a82f5f06fe5b3adeb6f80cf86b941 (diff) |
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 'lib')
-rw-r--r-- | lib/securerandom.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb index 37835bf7df..205cb70be5 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -85,6 +85,7 @@ module SecureRandom class << self remove_method :gen_random alias gen_random gen_random_openssl + public :gen_random end end return gen_random(n) @@ -94,6 +95,7 @@ module SecureRandom class << self remove_method :gen_random alias gen_random gen_random_urandom + public :gen_random end end return gen_random(n) |