From: "Matt Armstrong" <matt+dated+1007232467.e033d9@lickey.com>
Subject: Re: cancel locks
Date: Thu, 1 Nov 2001 11:47:48 -0700 (MST) [thread overview]
Message-ID: <20011101184748.1C89DBD29@squeaker.lickey.com> (raw)
In-Reply-To: <iluzo66pfr1.fsf@dhcp128.extundo.com> (Simon Josefsson's message of "Thu, 01 Nov 2001 18:23:14 +0100")
Simon Josefsson <jas@extundo.com> 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
next prev parent reply other threads:[~2001-11-01 18:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-31 17:45 Simon Josefsson
2001-10-31 18:11 ` Bjørn Mork
2001-10-31 19:06 ` Simon Josefsson
2001-11-01 0:13 ` Robin S. Socha
2001-11-01 11:28 ` Florian Weimer
2001-11-01 8:23 ` Per Abrahamsen
2001-11-01 11:34 ` Florian Weimer
2001-11-01 11:59 ` Per Abrahamsen
2001-11-01 16:34 ` Matt Armstrong
2001-11-01 17:21 ` Per Abrahamsen
2001-11-01 17:41 ` Jesper Harder
2001-11-01 17:23 ` Simon Josefsson
2001-11-01 18:47 ` Matt Armstrong [this message]
2001-11-01 21:09 ` Florian Weimer
2001-11-01 21:10 ` Florian Weimer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011101184748.1C89DBD29@squeaker.lickey.com \
--to=matt+dated+1007232467.e033d9@lickey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).