From b7c2ca7a3225efcc79a72ee3798abc3320f5c304 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 27 Dec 2018 12:42:45 +0000 Subject: [DOC] SecureRandom is extended by Random::Formatter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/securerandom.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/securerandom.rb') diff --git a/lib/securerandom.rb b/lib/securerandom.rb index 470b48dd6b..f36f18550c 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -16,6 +16,23 @@ # * /dev/urandom # * Win32 # +# SecureRandom is extended by Random::Formatter module which defines +# following methods: +# +# * alphanumeric +# * base64 +# * choose +# * gen_random +# * hex +# * rand +# * random_bytes +# * random_number +# * urlsafe_base64 +# * uuid +# +# These methods are usable as class methods of SecureRandom such as +# `SecureRandom.hex`. +# # === Examples # # Generate random hexadecimal strings: -- cgit v1.2.3