<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION(r192855): Math.random() always produces the same first 7 decimal points the first two invocations"
href="https://bugs.webkit.org/show_bug.cgi?id=157805#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION(r192855): Math.random() always produces the same first 7 decimal points the first two invocations"
href="https://bugs.webkit.org/show_bug.cgi?id=157805">bug 157805</a>
from <span class="vcard"><a class="email" href="mailto:ggaren@apple.com" title="Geoffrey Garen <ggaren@apple.com>"> <span class="fn">Geoffrey Garen</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>