Bug 4027

Summary: Math.random() is poort
Product: WebKit Reporter: Finlay Dobbie <snu>
Component: JavaScriptCoreAssignee: Maciej Stachowiak <mjs>
Status: CLOSED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: 412   
Hardware: Mac   
OS: OS X 10.4   

Finlay Dobbie
Reported 2005-07-16 04:51:53 PDT
Math.random() appears to be unseeded, and uses the rand() function which is known to perform poorly on OS X (IIRC, anyway). A partial workaround is to srand(time(NULL)) from the host application.
Attachments
Finlay Dobbie
Comment 1 2005-07-16 04:53:37 PDT
Whee, looks like a double submit. I've never done that before. *** This bug has been marked as a duplicate of 4026 ***
Note You need to log in before you can comment on or make changes to this bug.