[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( )
From: |
Mikal Hart |
Subject: |
RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ) |
Date: |
Sun, 4 Jan 2009 18:37:53 -0600 |
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: address@hidden
[mailto:address@hidden On Behalf Of
Weddington, Eric
Sent: Saturday, January 03, 2009 5:41 PM
To: Joerg Wunsch; address@hidden
Subject: RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( )
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Joerg Wunsch
> Sent: Saturday, January 03, 2009 4:22 PM
> To: address@hidden
> 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
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
- [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ), mhcom, 2009/01/03
- [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ), Mikal Hart, 2009/01/03
- Re: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ), Joerg Wunsch, 2009/01/03
- RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ), Weddington, Eric, 2009/01/03
- RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ),
Mikal Hart <=
- RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ), Weddington, Eric, 2009/01/04
- RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ), Mikal Hart, 2009/01/04
- RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ), Weddington, Eric, 2009/01/04
- RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ), Mikal Hart, 2009/01/05
RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( ), Weddington, Eric, 2009/01/03