diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-10 02:47:41 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-10 02:47:41 +0000 |
commit | f5ed50e7f01723ad77a27501d66bca219d8810a9 (patch) | |
tree | 94644943926c76ef55d8cb4d22c3624314c47cdd /lib | |
parent | a61a16a222417ddd5b8250fcd6276f8511f1c54b (diff) | |
download | ruby-f5ed50e7f01723ad77a27501d66bca219d8810a9.tar.gz ruby-f5ed50e7f01723ad77a27501d66bca219d8810a9.tar.xz ruby-f5ed50e7f01723ad77a27501d66bca219d8810a9.zip |
add document.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/securerandom.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb index e44855973..2416454f9 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -42,6 +42,9 @@ module SecureRandom # # The argument n specifies the length of the result string. # + # If n is not specified, 16 is assumed. + # It may be larger in future. + # # If secure random number generator is not available, # NotImplementedError is raised. def self.random_bytes(n=nil) @@ -79,6 +82,9 @@ module SecureRandom # The argument n specifies the length of the random length. # The length of the result string is twice of n. # + # If n is not specified, 16 is assumed. + # It may be larger in future. + # # If secure random number generator is not available, # NotImplementedError is raised. def self.hex(n=nil) @@ -90,6 +96,9 @@ module SecureRandom # The argument n specifies the length of the random length. # The length of the result string is about 4/3 of n. # + # If n is not specified, 16 is assumed. + # It may be larger in future. + # # If secure random number generator is not available, # NotImplementedError is raised. def self.base64(n=nil) |