[Webkit-unassigned] [Bug 29956] Math.random() gives too low values on Win32 when _CRT_RAND_S is not defined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 1 12:22:13 PDT 2009


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





--- Comment #3 from Jonni Rainisto <jonni.rainisto at nokia.com>  2009-10-01 12:22:13 PDT ---
Well in weakRandomNumber its using 15bit rand() 2 times, so imho normal case
(when _CRT_RAND_S is defined) in MSVC randomless is even weaker (or same) than
30bits. Im a bit worried that calling rand() 4 times to get 53bit randomness
could have some performance impacts. I can make the patch to use rand 4 times,
or copypaste the weak random, if 30bit random is not enough?

-- 
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