From ebd2090d29afbdbc8792166b3a35c7ead69dcc3c Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 26 Apr 2009 15:47:24 +0000 Subject: update rdoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/securerandom.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/securerandom.rb') 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 -- cgit v1.2.3