From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [patch] org-id: New org-id-method 'uuid' w/ elisp function that creates random uuid Date: Sat, 8 May 2010 07:03:03 +0200 Message-ID: <87EC457F-92D2-404E-AD87-B8AA1C73723F@gmail.com> References: <874oijaeni.wl%dmaus@ictsoc.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OAcBz-0007mY-KB for emacs-orgmode@gnu.org; Sat, 08 May 2010 01:03:11 -0400 Received: from [140.186.70.92] (port=56915 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAcBx-0007lr-UZ for emacs-orgmode@gnu.org; Sat, 08 May 2010 01:03:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OAcBv-00066f-VV for emacs-orgmode@gnu.org; Sat, 08 May 2010 01:03:09 -0400 Received: from mail-ew0-f214.google.com ([209.85.219.214]:58390) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OAcBv-00066U-R2 for emacs-orgmode@gnu.org; Sat, 08 May 2010 01:03:07 -0400 Received: by ewy6 with SMTP id 6so590605ewy.32 for ; Fri, 07 May 2010 22:03:06 -0700 (PDT) In-Reply-To: <874oijaeni.wl%dmaus@ictsoc.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: org-mode Hi David, what is the difference/advantage of this idea over using uuidgen as Org does now? Thanks. - Carsten On May 7, 2010, at 5:57 PM, David Maus wrote: > Attached patch for org-id adds a new function `org-id-uuid' that > returns a random (version 4) uuid following the format and suggestions > in RFC 4122: > > - it collects some random, system ans user specific data > > - creates a md5 hash for this data to obtain the require 32 octets > > - flips the correct bits to indicate a random uuid > > Using the elisp method to create a random uuid can be customized by > setting `org-id-method' to 'uuid. > > In addition `org-id-new' throws an error when the call to > `org-id-uuid-program' returns something that does not look like a > uuid.[1] > > HTH > -- David > > > [1] Sorry, this should have been a patch on its own. > > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... dmaus@ictsoc.de > elisp.diff>_______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten