Closed Bug 1065623 Opened 10 years ago Closed 10 years ago

Declare random_next in jsmath.h

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: fitzgen, Assigned: fitzgen)

References

Details

Attachments

(1 file, 1 obsolete file)

It's defined in jsmath.cpp, but not declared in jsmath.h leading to jit/ExecutableAllocatorWin.cpp and vm/ThreadPool.cpp to declare it themselves and use it.

Instead, we should just declare it in jsmath.h.
Attached patch declare-random_next.patch (obsolete) (deleted) — Splinter Review
https://tbpl.mozilla.org/?tree=Try&rev=9b35fd1f6e9c
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Attachment #8487463 - Flags: review?(jorendorff)
Attached patch declare-random_next.patch (deleted) — Splinter Review
Updated to also expose random_initState and random_nextDouble, because we want to be able to have our own rng state that we can control to get deterministic testing in bug 1056373 and we are using a double between 0 and 1.

Try push: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=5f3c765da94e
Attachment #8487463 - Attachment is obsolete: true
Attachment #8487463 - Flags: review?(jorendorff)
Attachment #8488813 - Flags: review?(jorendorff)
Comment on attachment 8488813 [details] [diff] [review]
declare-random_next.patch

Review of attachment 8488813 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!
Attachment #8488813 - Flags: review?(jorendorff) → review+
https://hg.mozilla.org/mozilla-central/rev/a4f865960cd3
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: