diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-08-26 15:13:49 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-08-26 15:13:49 +0000 |
commit | 7cdacb99ad17c859dc701843bd37d49412305716 (patch) | |
tree | 67c23dfa591deacc2ab840ba251c6805e7469645 /lib | |
parent | 6e5e5df1bfd971687cb370c4f42226a5fc255dfc (diff) |
merge revision(s) 5bab1304af25a843728dbcd2f3594913740aecb0: [Backport #15847]
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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 6d5520f605..e2632457ff 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -63,6 +63,7 @@ module SecureRandom class << self remove_method :gen_random alias gen_random gen_random_openssl + public :gen_random end end return gen_random(n) @@ -72,6 +73,7 @@ module SecureRandom class << self remove_method :gen_random alias gen_random gen_random_urandom + public :gen_random end end return gen_random(n) |