emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [patch] org-id: New org-id-method 'uuid' w/ elisp function


From: Carsten Dominik
Subject: Re: [Orgmode] [patch] org-id: New org-id-method 'uuid' w/ elisp function that creates random uuid
Date: Sat, 8 May 2010 07:03:03 +0200

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.... address@hidden
Email..... address@hidden
<org-id-uuid- elisp.diff>_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

[Prev in Thread] Current Thread [Next in Thread]