GNU bug report logs - #38753
27.0.60; cl--random-state uncontrolled growth due to bignums

Previous Next

Package: emacs;

Reported by: Christopher Wellons <wellons <at> nullprogram.com>

Date: Thu, 26 Dec 2019 17:13:02 UTC

Severity: normal

Found in version 27.0.60

Done: Mattias EngdegÄrd <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


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

From: Pip Cet <pipcet <at> gmail.com>
To: Christopher Wellons <wellons <at> nullprogram.com>
Cc: 38753 <at> debbugs.gnu.org
Subject: Re: bug#38753: 27.0.60;
 cl--random-state uncontrolled growth due to bignums
Date: Sun, 29 Dec 2019 13:31:30 +0000
On Thu, Dec 26, 2019 at 5:13 PM Christopher Wellons
<wellons <at> nullprogram.com> wrote:
> The cl-random generator was not written for bignums, so it misbehaves in
> Emacs 27.

Good catch.

I might be wrong, but it looks to me like cl-random and Frandom are
currently both limited to small integers (< 31 bits and fixnum range,
respectively) and we don't have a random number generator that will do
the right thing for
(random 100000000000000000000000000000000000000000000)

Any idea how easy it would be to fix either of them, or both?




This bug report was last modified 5 years and 141 days ago.

Previous Next


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