[Webkit-unassigned] [Bug 6315] new Math.random isn't portable to Windows

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sat Dec 31 13:06:35 PST 2005


http://bugzilla.opendarwin.org/show_bug.cgi?id=6315





------- Additional Comments From jhaygood at spsu.edu  2005-12-31 13:06 -------
(In reply to comment #2)
> So, is rand_s automatically seeded? We need to make sure that JavaScriptCore
doesn't return the same 
> random sequence each time it's used.

the CryptoAPI system uses metrics from various operating system and hardware
facilities to produce psuedo-random seed which in turn produces a psuedo-random
number. Such metrics are mouse movements, keyboard movements, processor
temperature, fan speed, memory free vs usage amounts, and other easily
measurable and variable processes.

I'd say the seed is pretty darned random.

-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list