diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-27 12:42:45 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-27 12:42:45 +0000 |
commit | b7c2ca7a3225efcc79a72ee3798abc3320f5c304 (patch) | |
tree | 8cf89e04daa447418bb8a200237c299756cc3150 /lib | |
parent | e3e09806a227acb9d1d4ced37c808d97f4eeb3cf (diff) |
[DOC] SecureRandom is extended by Random::Formatter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/securerandom.rb | 17 |
1 files changed, 17 insertions, 0 deletions
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: |