diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-25 07:28:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-25 07:28:22 +0000 |
commit | 46ec9788ce74ec768743c94b38f6ff69e4b1488b (patch) | |
tree | cc49408c2b7024a193c4882a2ced2afeb67c49b4 /lib/securerandom.rb | |
parent | a40561b4215e73defa0fa060e91e00dbc3584c74 (diff) | |
download | ruby-46ec9788ce74ec768743c94b38f6ff69e4b1488b.tar.gz |
securerandom.rb: fix an example of choose [ci skip]
* lib/securerandom.rb (Random::Formatter#choose): [DOC] fix an
example, `n` is not optional.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/securerandom.rb')
-rw-r--r-- | lib/securerandom.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb index 97911d4d6a..6d5520f605 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -236,7 +236,7 @@ module Random::Formatter # # The result may contain whatever characters are in the source array. # - # p SecureRandom.choose([*'l'..'r']) #=> "lmrqpoonmmlqlron" + # p SecureRandom.choose([*'l'..'r'], 16) #=> "lmrqpoonmmlqlron" # p SecureRandom.choose([*'0'..'9'], 5) #=> "27309" # # If a secure random number generator is not available, |