[Ecls-list] Small problem with random on NetBSD/Sparc64
Juan Jose Garcia Ripoll
lisp at arrakis.es
Fri Jul 29 02:32:10 UTC 2005
On Fri, 2005-07-29 at 09:19 +0000, Bruce O'Neel wrote:
> Hi,
>
> There seems to be a small problem with (random ) on NetBSD/Sparc64
> that does not seem to exist on NetBSD/ppc, m68k, intel x86, or sparc.
>
> On NetBSD/sparc (for example)
>
> > (random 100)
> 8
> > (random 100)
> 27
> > (random 100)
> 74
> >
>
> but on NetBSD/Sparc64
>
> > (random 100)
> 260094612668
> > (random 100)
> 27292043960
> > (random 100)
> 397829141684
This problem should have been solved in CVS long ago. The problem was
that in 64-bit architectures the random value could take values much
larger than the 32-bit integers assumed by the random number generator.
Juanjo
More information about the ecl-devel
mailing list