[Webkit-unassigned] [Bug 36673] Math.random repeats values in different workers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 26 18:11:15 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=36673


Oliver Hunt <oliver at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oliver at apple.com




--- Comment #1 from Oliver Hunt <oliver at apple.com>  2010-03-26 18:11:15 PST ---
We seed the random number generator with WTF::currentTime at
JSGlobalData.cpp:146 -- theoretically if we're spinning the new contexts up
fast enough they'll all have the same seed.  Should we seed with randomNumber()
instead?

I haven't tested to confirm this myself so this is simply theorising...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list