aboutsummaryrefslogtreecommitdiffstats
path: root/lib/securerandom.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-27 12:42:45 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-27 12:42:45 +0000
commitb7c2ca7a3225efcc79a72ee3798abc3320f5c304 (patch)
tree8cf89e04daa447418bb8a200237c299756cc3150 /lib/securerandom.rb
parente3e09806a227acb9d1d4ced37c808d97f4eeb3cf (diff)
downloadruby-b7c2ca7a3225efcc79a72ee3798abc3320f5c304.tar.gz
[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/securerandom.rb')
-rw-r--r--lib/securerandom.rb17
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: