GNU bug report logs - #9118
23.3.50; Don't seed the RNG in message-unique-id

Previous Next

Packages: gnus, emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Mon, 18 Jul 2011 16:43:02 UTC

Severity: minor

Tags: wontfix

Found in version 23.3.50

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #15 received at 9118 <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 9118 <at> debbugs.gnu.org
Subject: Re: bug#9118: 23.3.50; Don't seed the RNG in message-unique-id
Date: Tue, 19 Jul 2011 23:14:54 +0800
On 2011-07-19 22:57 +0800, Lars Magne Ingebrigtsen wrote:
> Unfortunately, Emacs doesn't seed itself on startup, so (random x) will
> return the same thing every time you start Emacs.
>
> So I don't think changing this is appropriate at this time.

But you can arrange to seed it once when that file is loaded. No need to
seed it every time. BTW, (random t) produces no random numbers.

(loop repeat 5 collect (random t))

=>

(2265815277832325116 2265815277832325116 2265815277832325116 2265815277832325116 2265815277832325116)

Leo




This bug report was last modified 13 years and 358 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.