make_random_state broken for Maxima installed with Ecl
Subject: make_random_state broken for Maxima installed with Ecl
From: Oliver Kullmann
Date: Thu, 28 Aug 2008 22:43:42 +0100
I forgot to mention that with clisp make_random_state(0)$
never was a problem (including 2.46 now).
Oliver
On Thu, Aug 28, 2008 at 05:03:26PM -0400, Raymond Toy wrote:
> Oliver Kullmann wrote:
> >Hi,
> >
> >Maxima 5.16.3 http://maxima.sourceforge.net
> >Using Lisp ECL 0.9l (CVS 2008-06-19 17:09)
> >Distributed under the GNU Public License. See the file COPYING.
> >Dedicated to the memory of William Schelter.
> >The function bug_report() provides bug reporting information.
> >(%i1) make_random_state(0)$
> >Maxima encountered a Lisp error:
> >
> > The value of MT19937::SEED is 0, which is not of type (INTEGER 1
> > 4294967295).
> >
> >Automatically continuing.
> >To reenable the Lisp debugger set *debugger-hook* to nil.
> >
> >according to the documentation, 0 is a valid argument for
> >make_random_state?
>
> This is probably due to a incorrect declaration in int-init-random-state.
>
> As best as I can tell, 0 should be ok as the initialization seed; the
> random state isn't all zeroes and looks reasonably mixed if 0 would have
> been allowed.
>
> Ray