[Ecls-list] Re: Still seeing (random <larger integer>) ==> 0
der_julian at web.de
Sat Mar 5 11:47:29 UTC 2005
On Sat, 05 Mar 2005 13:15:58 -0600
"Paul F. Dietz" <dietz at dls.net> wrote:
> Dave wrote:
> > These work fine for me on a pentium 4, but things got wierd
> > on an amd64 64-bit installation where even low fixnums generated 0.
> > The random generator apparently expects the internal random state to
> > be clamped to 32 bits. I added some casts to advance_random_state()
> > in src/c/num_rand.d and it seems to work now.
> > You mentioned redhat 9, any chance you are on a 64-bit cpu?
> I'm on a 32 bit Athlon XP+.
> I have managed to make the problem go away, by specifying the
> C compiler to be gcc 2.96. The previous version was gcc 3.2.2
> (the default in Redhat 9). I suspect there's either a compiler
> bug or some problem in the RANDOM code that the newer, perhaps
> more C-stanard-assuming compiler is tripping up on.
> gcc --version
gcc (GCC) 3.4.2 [FreeBSD] 20040728
-- Common Lisp can do what C, C++, Java, PASCAL, PHP, Perl, (you --
-- name it) can do. Here's how: --
-- http://www.amazon.com/exec/obidos/ASIN/1590592395 --
More information about the ecl-devel