[Webkit-unassigned] [Bug 157805] REGRESSION(r192855): Math.random() always produces the same first 7 decimal points the first two invocations
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 17 12:01:46 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=157805
--- Comment #3 from Geoffrey Garen <ggaren at apple.com> ---
Probably too many zeroes in the initial seed, since our seed API is 32 bit. You can probably fix this by:
uint64_t seed64 = seed;
m_low = (seed64 << 32) | seed64;
m_high = (seed64 << 32) | seed64;
Or you could update the seed API to be 128bit.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160517/8ec1a918/attachment.html>
More information about the webkit-unassigned
mailing list