Bug 4027
| Summary: | Math.random() is poort | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Finlay Dobbie <snu> |
| Component: | JavaScriptCore | Assignee: | Maciej Stachowiak <mjs> |
| Status: | CLOSED DUPLICATE | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 412 | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
Finlay Dobbie
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Finlay Dobbie
Whee, looks like a double submit. I've never done that before.
*** This bug has been marked as a duplicate of 4026 ***