Revision: 24721
Author:   [email protected]
Date:     Mon Oct 20 08:40:46 2014 UTC
Log:      Avoid the Marsaglia effect in 3D

For a longer discussion, see the associated Chromium issue.

BUG=chromium:423311
LOG=y
[email protected]

Review URL: https://codereview.chromium.org/662513004
https://code.google.com/p/v8/source/detail?r=24721

Modified:
 /branches/bleeding_edge/src/math.js

=======================================
--- /branches/bleeding_edge/src/math.js Mon Sep  1 09:36:00 2014 UTC
+++ /branches/bleeding_edge/src/math.js Mon Oct 20 08:40:46 2014 UTC
@@ -144,7 +144,7 @@
 // ECMA 262 - 15.8.2.14
 var rngstate;  // Initialized to a Uint32Array during genesis.
 function MathRandom() {
- var r0 = (MathImul(18273, rngstate[0] & 0xFFFF) + (rngstate[0] >>> 16)) | 0; + var r0 = (MathImul(18030, rngstate[0] & 0xFFFF) + (rngstate[0] >>> 16)) | 0;
   rngstate[0] = r0;
var r1 = (MathImul(36969, rngstate[1] & 0xFFFF) + (rngstate[1] >>> 16)) | 0;
   rngstate[1] = r1;

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to