bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38753: 27.0.60; cl--random-state uncontrolled growth due to bignums


From: Pip Cet
Subject: 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@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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]