This is the mail archive of the
gsl-discuss@sourceware.org
mailing list for the GSL project.
Re: rng question
Jari Häkkinen writes:
> No, the attached program does not return from the call to
> gsl_rng_uniform_int.
>
> The problem shows up on my powermac running MacOSX 10.4.3 with gcc
> version powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple
> Computer, Inc. build 4061).
> I compile GSL from CVS (20051208 = today) with with flags -NDEBUG -O2.
> The test program is compiled with a plain 'gcc -o rnd_test rnd_test.c
> -lgsl'.
>
> Now, I also run the test program on a SuSE based machine, and the call
> fails with an floating point exception as expected.
Thanks. I've added a test to catch the case n=0 and return an error, and
added some notes in the documentation to explain how the function works.
--
Brian Gough
Network Theory Ltd,
Publishing Free Software Manuals --- http://www.network-theory.co.uk/