From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10237 invoked by alias); 17 Dec 2005 16:50:12 -0000 Received: (qmail 10223 invoked by uid 22791); 17 Dec 2005 16:50:11 -0000 X-Spam-Check-By: sourceware.org Received: from network-theory.com (HELO mail.network-theory.co.uk) (66.199.228.187) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 17 Dec 2005 16:50:09 +0000 Received: from bris.network-theory.co.uk ([84.45.156.78]:33611 helo=hp2.network-theory.co.uk) by mail.network-theory.co.uk with esmtpa (Exim 4.44) id 1EnfG3-0001pf-D7; Sat, 17 Dec 2005 16:50:07 +0000 Received: by hp2.network-theory.co.uk (Postfix, from userid 1000) id C9B6A683C0; Sat, 17 Dec 2005 16:50:10 +0000 (GMT) From: Brian Gough MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17316.16834.391844.942881@hp2.network-theory.co.uk> Date: Sat, 17 Dec 2005 16:50:00 -0000 To: =?ISO-8859-1?Q?Jari_H=E4kkinen?= Cc: gsl-discuss@sources.redhat.com Subject: Re: rng question In-Reply-To: <43998B68.8040903@chiralcomp.com> References: <4396B8AF.7040300@chiralcomp.com> <17303.16636.732007.363616@hp2.network-theory.co.uk> <43998B68.8040903@chiralcomp.com> Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org X-SW-Source: 2005-q4/txt/msg00022.txt.bz2 Jari H=E4kkinen writes: > No, the attached program does not return from the call to=20 > gsl_rng_uniform_int. >=20 > The problem shows up on my powermac running MacOSX 10.4.3 with gcc=20 > version powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple=20 > Computer, Inc. build 4061). > I compile GSL from CVS (20051208 =3D today) with with flags -NDEBUG -O2.= =20 > The test program is compiled with a plain 'gcc -o rnd_test rnd_test.c=20 > -lgsl'. >=20 > Now, I also run the test program on a SuSE based machine, and the call=20 > fails with an floating point exception as expected. Thanks. I've added a test to catch the case n=3D0 and return an error, and added some notes in the documentation to explain how the function works. --=20 Brian Gough Network Theory Ltd, Publishing Free Software Manuals --- http://www.network-theory.co.uk/