avr-libc-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-commit] avr-libc ChangeLog NEWS libc/stdlib/rand.c libc... [av


From: Joerg Wunsch
Subject: [avr-libc-commit] avr-libc ChangeLog NEWS libc/stdlib/rand.c libc... [avr-libc-1_4-branch]
Date: Mon, 08 Jan 2007 15:10:37 +0000

CVSROOT:        /sources/avr-libc
Module name:    avr-libc
Branch:         avr-libc-1_4-branch
Changes by:     Joerg Wunsch <joerg_wunsch>     07/01/08 15:10:37

Modified files:
        .              : ChangeLog NEWS 
        libc/stdlib    : rand.c random.c 

Log message:
        Fix broken seeding of the PRNGs when seeding with 0.
        This fix is courtesy Andrew Chernov from the FreeBSD
        project (rev. 1.21 of their random.c).
        
        * libc/stdlib/random.c (do_random): seed with another (arbitrary) value
        when attempting to seed with 0.
        * libc/stdlib/rand.c (do_rand): (Ditto.)
        
        Closes bug #18662: rand() keeps returning the same value if seeded with 0

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/avr-libc/ChangeLog?cvsroot=avr-libc&only_with_tag=avr-libc-1_4-branch&r1=1.623.2.96&r2=1.623.2.97
http://cvs.savannah.gnu.org/viewcvs/avr-libc/NEWS?cvsroot=avr-libc&only_with_tag=avr-libc-1_4-branch&r1=1.120.2.63&r2=1.120.2.64
http://cvs.savannah.gnu.org/viewcvs/avr-libc/libc/stdlib/rand.c?cvsroot=avr-libc&only_with_tag=avr-libc-1_4-branch&r1=1.2&r2=1.2.8.1
http://cvs.savannah.gnu.org/viewcvs/avr-libc/libc/stdlib/random.c?cvsroot=avr-libc&only_with_tag=avr-libc-1_4-branch&r1=1.1&r2=1.1.8.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]