ruby-changes:31496
From: zzak <ko1@a...>
Date: Fri, 8 Nov 2013 03:04:09 +0900 (JST)
Subject: [ruby-changes:31496] zzak:r43575 (trunk): commit miss from r43573
zzak 2013-11-08 03:04:05 +0900 (Fri, 08 Nov 2013) New Revision: 43575 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43575 Log: commit miss from r43573 Modified files: trunk/lib/securerandom.rb Index: lib/securerandom.rb =================================================================== --- lib/securerandom.rb (revision 43574) +++ lib/securerandom.rb (revision 43575) @@ -37,7 +37,7 @@ module SecureRandom https://github.com/ruby/ruby/blob/trunk/lib/securerandom.rb#L37 # # 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 https://github.com/ruby/ruby/blob/trunk/lib/securerandom.rb#L121 # 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 https://github.com/ruby/ruby/blob/trunk/lib/securerandom.rb#L137 # 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 https://github.com/ruby/ruby/blob/trunk/lib/securerandom.rb#L158 # 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. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/