diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-07 18:04:05 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-07 18:04:05 +0000 |
commit | d24903f0634dd5fa7e53136ffc62285d742cc94f (patch) | |
tree | 3abf9ed8ef0ab9977056ab4de2fcb11908672617 /lib/securerandom.rb | |
parent | bc319093665db0e8b4ed102e1bd093c5b0f04039 (diff) |
commit miss from r43573
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/securerandom.rb')
-rw-r--r-- | lib/securerandom.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb index f12bc00114..4f2c35cabd 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -37,7 +37,7 @@ module SecureRandom # # The argument _n_ specifies the length of the result string. # - # If _n_ is not specified, 16 is assumed. + # If _n_ is not specified or is nil, 16 is assumed. # It may be larger in future. # # The result may contain any byte: "\x00" - "\xff". @@ -121,7 +121,7 @@ module SecureRandom # The argument _n_ specifies the length, in bytes, of the random number to be generated. # The length of the resulting hexadecimal string is twice _n_. # - # If _n_ is not specified, 16 is assumed. + # If _n_ is not specified or is nil, 16 is assumed. # It may be larger in future. # # The result may contain 0-9 and a-f. @@ -137,10 +137,10 @@ module SecureRandom # SecureRandom.base64 generates a random base64 string. # - # The argument _n_ specifies the length of the random length. - # The length of the result string is about 4/3 of _n_. + # The argument _n_ specifies the length, in bytes, of the random number + # to be generated. The length of the result string is about 4/3 of _n_. # - # If _n_ is not specified, 16 is assumed. + # If _n_ is not specified or is nil, 16 is assumed. # It may be larger in future. # # The result may contain A-Z, a-z, 0-9, "+", "/" and "=". @@ -158,10 +158,10 @@ module SecureRandom # SecureRandom.urlsafe_base64 generates a random URL-safe base64 string. # - # The argument _n_ specifies the length of the random length. - # The length of the result string is about 4/3 of _n_. + # The argument _n_ specifies the length, in bytes, of the random number + # to be generated. The length of the result string is about 4/3 of _n_. # - # If _n_ is not specified, 16 is assumed. + # If _n_ is not specified or is nil, 16 is assumed. # It may be larger in future. # # The boolean argument _padding_ specifies the padding. |