Skip to content

Commit 5735138

Browse files
committed
Add WebKit bug to use a better PRNG
1 parent 2be408d commit 5735138

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

docs/native_math_bugs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
* [V8 `Math.round` accuracy][@bug:v8:958]
4040
* [Observability of distinguishable NaNs][@bug:esdiscuss:2013-03-20]
4141
* [After 10 years, Mozilla updates `Math.random`][@bug:mozilla:322529]
42+
* [WebKit bug to use a better PRNG][@bug:webkit:151641]
4243

4344

44-
* [Webkit bug to use a better PRNG][25]
4545
* [Mobile Safari 32bit Math bug][26]
4646
* [Mozilla optimizations break commutativity][27]
4747
* [Mozilla debate on speed versus precision][28]
@@ -96,14 +96,14 @@
9696
[@bug:v8:958]: https://bugs.chromium.org/p/v8/issues/detail?id=958
9797
[@bug:esdiscuss:2013-03-20]: https://esdiscuss.org/topic/observability-of-nan-distinctions-is-this-a-concern
9898
[@bug:mozilla:322529]: https://bugzilla.mozilla.org/show_bug.cgi?id=322529
99+
[@bug:webkit:151641]: https://bugs.webkit.org/show_bug.cgi?id=151641
99100

100101

101102
[v8-issue-tracker]: https://bugs.chromium.org/p/v8/issues/list?can=1&q=math&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20HW%20OS%20Component%20Stars&num=100&start=100
102103
[webkit-issue-tracker]: https://bugs.webkit.org/buglist.cgi?quicksearch=math
103104
[mozilla-issue-tracker]: https://bugzilla.mozilla.org/buglist.cgi?quicksearch=math
104105

105106

106-
[25]: https://bugs.webkit.org/show_bug.cgi?id=151641
107107
[26]: https://bugs.webkit.org/show_bug.cgi?id=40367
108108
[27]: https://bugzilla.mozilla.org/show_bug.cgi?id=969203#c8
109109
[28]: https://bugzilla.mozilla.org/show_bug.cgi?id=967709

docs/references/bugs.bib

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,19 @@ @misc{bug:esdiscuss:2013-03-20
301301

302302
@misc{bug:mozilla:322529,
303303
abstract = {},
304-
keywords = {math, firefox, mozilla, chrome, random, rand},
304+
keywords = {math, firefox, mozilla, random, rand},
305305
notes = {},
306306
title = {{Upgrade Math.random() to the better XorShift128+ algorithm}},
307307
url = {https://bugzilla.mozilla.org/show_bug.cgi?id=322529},
308308
year = {2006}
309309
}
310310

311+
@misc{bug:webkit:151641,
312+
abstract = {The GameRand-based RNG Safari/JSC uses is very weak. Furthermore, it only uses 32 bits of precision. I blogged about this here: http://jandemooij.nl/blog/2015/11/27/math-random-and-32-bit-precision/. V8 moved to a better RNG and we're switching the one in SpiderMonkey as well. JSC should probably do the same.},
313+
keywords = {math, webkit, safari, random, rand},
314+
notes = {See also https://jandemooij.nl/blog/2015/11/27/math-random-and-32-bit-precision/.},
315+
title = {{Use a better RNG for Math.random()}},
316+
url = {https://bugs.webkit.org/show_bug.cgi?id=151641},
317+
year = {2015}
318+
}
319+

0 commit comments

Comments
 (0)