Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: src/js/math.js

Issue 1461133003: Fix typo in MathRandomRaw. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/math.js
diff --git a/src/js/math.js b/src/js/math.js
index 4488eac6f78d1473c52a61c885bd9e530e483a36..18ea596408c6dc63754097a34008f52cdcf20b84 100644
--- a/src/js/math.js
+++ b/src/js/math.js
@@ -148,7 +148,7 @@ function MathRandom() {
function MathRandomRaw() {
var r0 = (MathImul(18030, rngstate.a) + rngstate.b) | 0;
- var r1 = (MathImul(36969, rngstate.d) + rngstate.c) | 0;
+ var r1 = (MathImul(36969, rngstate.c) + rngstate.d) | 0;
rngstate.a = r0 & 0xFFFF;
rngstate.b = r0 >>> 16;
rngstate.c = r1 & 0xFFFF;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698