help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: UUIDGEN in lisp


From: Jesper Harder
Subject: Re: UUIDGEN in lisp
Date: Sat, 14 Feb 2004 05:05:14 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Brad Collins <address@hidden> writes:

> I think it would be generally helpful to have a generic unique id
> generator for a number available for any application but I'm not
> sure if this has already been done or not.
>
> Any ideas?

Concat some strings that should identify the user -- uid, pid,
system-name etc. -- plus some random stuff, and take a hash?

Something like:

(md5 (format "%s%s%s%s%s%s%s%s" 
             (user-uid)
             (emacs-pid)
             (system-name)
             (user-full-name)
             user-mail-address
             (current-time)
             (random)
             (recent-keys)))


reply via email to

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