diff options
author | Urabe, Shyouhei <[email protected]> | 2019-05-14 11:44:20 +0900 |
---|---|---|
committer | Urabe, Shyouhei <[email protected]> | 2019-05-14 11:44:20 +0900 |
commit | 5bab1304af25a843728dbcd2f3594913740aecb0 () | |
tree | d4c83aceaff7e3277b85ccb83c9de408aad4f438 /lib/securerandom.rb | |
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]
-rw-r--r-- | lib/securerandom.rb | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -85,6 +85,7 @@ module SecureRandom class << self remove_method :gen_random alias gen_random gen_random_openssl end end return gen_random(n) @@ -94,6 +95,7 @@ module SecureRandom class << self remove_method :gen_random alias gen_random gen_random_urandom end end return gen_random(n) |