diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/securerandom.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb index b1603b4ca9..f12bc00114 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -116,10 +116,10 @@ module SecureRandom raise NotImplementedError, "No random device" end - # SecureRandom.hex generates a random hex string. + # SecureRandom.hex generates a random hexadecimal string. # - # The argument _n_ specifies the length of the random length. - # The length of the result string is twice of _n_. + # 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. # It may be larger in future. |