Thanks much for the quick replies, Joerg and Eric, Not being a Linux user myself, I forwarded your follow up questions to the original thread and got some replies (see http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1227218077/52#52).
The most informative reply came from "Veronica" who reports that she sees the failure with this configuration: Ubuntu 8.10 (Intrepid Ibex) avr-libc 1:1.6.2-1 avr-gcc 1:4.3.0-2 Maintainer: Ubuntu MOTU Developers Linux main 2.6.27-11-generic #1 SMP Fri Dec 19 16:29:35 UTC 2008 x86_64 GNU/Linux but when she installs the following files from debian sid, it fixes the problem: binutils-avr_2.18-4_amd64.deb avr-libc_1.6.2.cvs20080610-2_all.deb gcc-avr_4.3.2-1_amd64.deb Answering other specific points and questions: Eric, I understand that you should ordinarily seed to get reasonable randomness, but I intentionally avoided doing so in this case to better compare the behaviors of the varying implementations of rand() and random() Joerg, I agree that it is quite interesting that the very first number supplied by (unseeded) random() is 0. Does it seem like it's a problem with the 4.3.0 compiler? Would you still recommend I file a bug report at savannah.nongnu.org? Regards, Mikal -----Original Message----- From: avr-libc-dev-bounces+mhcom=sundial....@nongnu.org [mailto:avr-libc-dev-bounces+mhcom=sundial....@nongnu.org] On Behalf Of Weddington, Eric Sent: Saturday, January 03, 2009 5:41 PM To: Joerg Wunsch; AVR-libc-dev@nongnu.org Subject: RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ) > -----Original Message----- > From: > avr-libc-dev-bounces+eweddington=cso.atmel....@nongnu.org > [mailto:avr-libc-dev-bounces+eweddington=cso.atmel....@nongnu. > org] On Behalf Of Joerg Wunsch > Sent: Saturday, January 03, 2009 4:22 PM > To: AVR-libc-dev@nongnu.org > Subject: Re: [avr-libc-dev] bug in > rand()/random()/do_rand()/do_random( ) > > As Mikal Hart wrote: > > > That would also be an indication that the issue has been fixed long > since, but the Ubuntu users are apparently using a way old version of > avr-libc (probably since their package maintainer lags quite a couple > of years behind). > In the arduino forum thread, a user reported using Suse with avr-libc 1.6.1: <http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1227218077/15> So it's not a terribly old version. _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev