[前][次][番号順一覧][スレッド一覧]

ruby-changes:11658

From: akr <ko1@a...>
Date: Mon, 27 Apr 2009 00:49:33 +0900 (JST)
Subject: [ruby-changes:11658] Ruby:r23297 (trunk): update rdoc.

akr	2009-04-27 00:47:24 +0900 (Mon, 27 Apr 2009)

  New Revision: 23297

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23297

  Log:
    update rdoc.

  Modified files:
    trunk/lib/securerandom.rb

Index: lib/securerandom.rb
===================================================================
--- lib/securerandom.rb	(revision 23296)
+++ lib/securerandom.rb	(revision 23297)
@@ -230,7 +230,11 @@
   #   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]