From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: UUIDGEN in lisp Date: Sat, 14 Feb 2004 05:05:14 +0100 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076732259 3264 80.91.224.253 (14 Feb 2004 04:17:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2004 04:17:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 05:17:31 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ArrFD-0003iJ-00 for ; Sat, 14 Feb 2004 05:17:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ArrEF-00050X-0b for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Feb 2004 23:16:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16841 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16841 Brad Collins 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)))