mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] SecureRandom is extended by Random::Formatter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e3e09806a2
commit
b7c2ca7a32
1 changed files with 17 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue