From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39813 Path: main.gmane.org!not-for-mail From: "Matt Armstrong" Newsgroups: gmane.emacs.gnus.general Subject: Re: cancel locks Date: Thu, 1 Nov 2001 11:47:48 -0700 (MST) Sender: owner-ding@hpc.uh.edu Message-ID: <20011101184748.1C89DBD29@squeaker.lickey.com> References: <871yji7mik.fsf@deneb.enyo.de> <20011101163409.39F32BD4F@squeaker.lickey.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035175464 29970 80.91.224.250 (21 Oct 2002 04:44:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:44:24 +0000 (UTC) Return-Path: Original-Received: (qmail 4232 invoked from network); 1 Nov 2001 18:52:17 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 1 Nov 2001 18:52:17 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15zMtX-0006BU-00; Thu, 01 Nov 2001 12:48:51 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 01 Nov 2001 12:48:30 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id MAA21200 for ; Thu, 1 Nov 2001 12:48:10 -0600 (CST) Original-Received: (qmail 4186 invoked by alias); 1 Nov 2001 18:48:04 -0000 Original-Received: (qmail 4181 invoked from network); 1 Nov 2001 18:48:04 -0000 Original-Received: from hank.lickey.com (64.81.100.235) by gnus.org with SMTP; 1 Nov 2001 18:48:04 -0000 Original-Received: from squeaker.lickey.com (squeaker.lickey.com [192.168.100.10]) by hank.lickey.com (Postfix) with ESMTP id BC367EE30 for ; Thu, 1 Nov 2001 11:47:49 -0700 (MST) Original-Received: from localhost (localhost [127.0.0.1]) by squeaker.lickey.com (Postfix) with ESMTP id E92BFBD4F for ; Thu, 1 Nov 2001 11:47:48 -0700 (MST) Original-Received: by squeaker.lickey.com (Postfix, from userid 1000) id 1C89DBD29; Thu, 1 Nov 2001 11:47:48 -0700 (MST) Original-To: ding@gnus.org In-Reply-To: (Simon Josefsson's message of "Thu, 01 Nov 2001 18:23:14 +0100") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i386-debian-linux-gnu) Mail-Followup-To: ding@gnus.org X-Delivery-Agent: TMDA v0.40/Python 1.5.2 (linux2) X-Virus-Scanned: by AMaViS snapshot-20010714 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 16 Xref: main.gmane.org gmane.emacs.gnus.general:39813 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39813 Simon Josefsson writes: > (defun message-canlock-generate () > "Return a string that is non-trival to guess. > Do not use this for anything important, it is cryptographically weak." > (md5 (concat (message-unique-id) > (format "%x%x%x" (random) (random t) (random)) > (prin1-to-string (recent-keys)) > (prin1-to-string (garbage-collect))))) I think the garbage-collect could be taken out. It introduces a noticeable pause on my system (a 233 MHz machine) while not introducing any appreciable randomness. -- matt