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


View this message in rfc822 format

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Leo <sdl.web <at> gmail.com>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 9118 <at> debbugs.gnu.org
Subject: bug#9118: 23.3.50; Don't seed the RNG in message-unique-id
Date: Thu, 21 Jul 2011 13:57:51 +0200
On Thu, Jul 21, 2011 at 06:45, Leo <sdl.web <at> gmail.com> wrote:

> Indeed, some do some don't. I wonder if Emacs should?

Many systems (languages, etc.) have a facility to seed the RNG with a
specific seed (saved from a previous run, for example), so you can
have repeated runs with the exact same sequence of random numbers, if
needed. That can be useful for simulation, testing, etc.

AFAIK, the Emacs RNG does not allow that at the lisp level, so it
would be better to automatically seed it and remove the many (random
t) calls, which, as has been pointed out, can in fact be harmful for
the quality of the generated random number series, if called
repeatedly.

    Juanma




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

Previous Next


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