diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-26 15:47:24 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-26 15:47:24 +0000 |
commit | ebd2090d29afbdbc8792166b3a35c7ead69dcc3c (patch) | |
tree | 829c361a542aa2a097d82b4db0073293cb48bdad | |
parent | d0a4f8ada90c7868abb726489438dc69a1b8de8b (diff) |
update rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/securerandom.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb index 1365c66565..4a97ff8a78 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -230,7 +230,11 @@ module SecureRandom # p SecureRandom.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594" # p SecureRandom.uuid #=> "62936e70-1815-439b-bf89-8492855a7e6b" # - # See RFC 4122 for UUID. + # The version 4 UUID is purely random (except the version). + # It doesn't contain meaningful information such as MAC address, time, etc. + # + # See RFC 4122 for details of UUID. + # def self.uuid ary = self.random_bytes(16).unpack("NnnnnN") ary[2] = (ary[2] & 0x0fff) | 0x4000 |