summaryrefslogtreecommitdiff
path: root/lib/securerandom.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/securerandom.rb')
-rw-r--r--lib/securerandom.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb
index 470b48dd6b..d01b47499d 100644
--- a/lib/securerandom.rb
+++ b/lib/securerandom.rb
@@ -68,6 +68,7 @@ module SecureRandom
class << self
remove_method :gen_random
alias gen_random gen_random_openssl
+ public :gen_random
end
end
return gen_random(n)
@@ -77,6 +78,7 @@ module SecureRandom
class << self
remove_method :gen_random
alias gen_random gen_random_urandom
+ public :gen_random
end
end
return gen_random(n)