[Webkit-unassigned] [Bug 157805] New: 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 11:48:28 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=157805

            Bug ID: 157805
           Summary: Math.random() always produces the same first 7 decimal
                    points the first two invocations
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joepeck at webkit.org
                CC: benjamin at webkit.org, fpizlo at apple.com,
                    ggaren at apple.com, mark.lam at apple.com

* SUMMARY
Math.random() always produces the same first 7 decimal points the first two invocations

* STEPS TO REPRODUCE
1. Inspect about:blank
2. Run Math.random() twice
  => first 7 decimals are identical

* EXAMPLES

  > Math.random()
  < 0.39641653952203815
  < 0.39641654154667616

  > Math.random()
  < 0.7208129766006761
  < 0.7208129575360934

* NOTES
Seen in a comment on Hacker News: <https://news.ycombinator.com/item?id=11711912>
> 2) Math.random() returns the same result the first two calls on page load.

-- 
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/0c19eacc/attachment.html>


More information about the webkit-unassigned mailing list