From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28597 invoked by alias); 17 Dec 2005 23:58:56 -0000 Received: (qmail 28589 invoked by uid 22791); 17 Dec 2005 23:58:55 -0000 X-Spam-Check-By: sourceware.org Received: from samba.lucas.lu.se (HELO samba.lucas.lu.se) (130.235.92.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 17 Dec 2005 23:58:50 +0000 Received: (qmail 27711 invoked by uid 89); 18 Dec 2005 00:58:55 +0100 Received: from unknown (HELO ?192.168.1.2?) (jari@thep.lu.se@84.217.63.0) by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 18 Dec 2005 00:58:55 +0100 Message-ID: <43A4A628.1010405@chiralcomp.com> Date: Sat, 17 Dec 2005 23:58:00 -0000 From: =?ISO-8859-1?Q?Jari_H=E4kkinen?= User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) MIME-Version: 1.0 To: Brian Gough CC: gsl-discuss@sources.redhat.com Subject: Re: rng question References: <4396B8AF.7040300@chiralcomp.com> <17303.16636.732007.363616@hp2.network-theory.co.uk> <43998B68.8040903@chiralcomp.com> <17316.16834.391844.942881@hp2.network-theory.co.uk> In-Reply-To: <17316.16834.391844.942881@hp2.network-theory.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-BitDefender-SpamStamp: 1.1.4 049000040111AAAAAAE X-BitDefender-Scanner: Clean, Agent: BitDefender Qmail 1.6.2 on samba.lucas.lu.se X-BitDefender-Spam: No (28) 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/msg00024.txt.bz2 Thank you, I tested the latest CVS and GSL now behaves as expected. Jari Brian Gough wrote: > 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. >