[Mesa3d-dev] [Bug 23774] Using glutCreateWindow() seeds RNG with predictable value

2009-09-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=23774 --- Comment #7 from Geir Ove Myhr gom...@gmail.com 2009-09-17 12:40:22 PST --- (In reply to comment #6) Geir, could you test this patch? Tested. With the patch, the test program gets new random numbers every new second, so the patch

[Mesa3d-dev] [Bug 23774] Using glutCreateWindow() seeds RNG with predictable value

2009-09-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=23774 Ian Romanick i...@freedesktop.org changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa3d-dev] [Bug 23774] Using glutCreateWindow() seeds RNG with predictable value

2009-09-16 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=23774 --- Comment #6 from Ian Romanick i...@freedesktop.org 2009-09-16 16:51:11 PST --- Created an attachment (id=29610) -- (http://bugs.freedesktop.org/attachment.cgi?id=29610) glx: Use initstate_r / random_r instead of corrupting global random

[Mesa3d-dev] [Bug 23774] Using glutCreateWindow() seeds RNG with predictable value

2009-09-15 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=23774 Ian Romanick i...@freedesktop.org changed: What|Removed |Added AssignedTo|i...@freedesktop.org |mesa3d-

[Mesa3d-dev] [Bug 23774] Using glutCreateWindow() seeds RNG with predictable value

2009-09-15 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=23774 --- Comment #5 from Brian Paul brian.e.p...@gmail.com 2009-09-15 11:43:26 PST --- Ugh! That would explain some weirdness I saw a while back when debugging an app that used random numbers. Can we just get rid of the srandom() call and be