Subject: Re: bug#9118: 23.3.50; Don't seed the RNG in message-unique-id

From: Leo <[email-masked]>
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