[Openmcl-devel] weird random problem

Nikodemus Siivola nikodemus at random-state.net
Tue May 20 10:46:24 UTC 2008


On Tue, May 20, 2008 at 8:54 AM, Gary Byers <gb at clozure.com> wrote:

> So, when a thread starts up, its binding of *RANDOM-STATE* is set to some
> value which returns 91 on the first call to (RANDOM 100).  The fact that
> 91 is the value that you get repeatedly when you do something similar
> under SLIME is likely significant, but it's not clear how.  I don't
> usually use SLIME, but didn't see this behavior with 1.2 on x86-64 Linux
> using something called "SLIME 2008-01-27".

I bet  swank:*communication-style* is :spawn, which (IIRC) means every
evaluation from a non-repl buffer gets a fresh thread -- and hence a
consistent *random-state* -- whereas REPL evaluations all happen in
the same thread (IIRC, again).

Cheers,

 -- Nikodemus



More information about the Openmcl-devel mailing list