PreviousIndexNext

[bug-gsl] Re: initialisation of random number generator on 64bit machine (2008-09-05)

From: Brian Gough <bjg@gnu.org>
Subject: Re: initialisation of random number generator on 64bit machine
Date: Fri, 05 Sep 2008 17:22:33 +0100
To: Vito Trianni <vtrianni@.........>
Cc: bug-gsl@gnu.org

At Wed, 03 Sep 2008 15:43:33 +0200,
Vito Trianni wrote:
>
> Hello,
> I noticed the following behaviour when initialising the random number
> generator on a 64bit machine. Basically, on a 64 bit machine, the
> unsigned long int probably provokes an overflow in the gsl_rng_set()
> function, so that the initialisation of the seed in some way fails, and
> I got always identical numbers despite different seeds. Here is part of
> the code that made the overflow:

Thanks for your email -- could you send a complete example program
showing the seed and output values so we can reproduce the
problem. Thank you.

--
Brian Gough

GNU Scientific Library -
http://www.gnu.org/software/gsl/