commit | 357bf65ed5309ac3a2c4bf20b6ce7770488787c2 | [log] [tgz] |
---|---|---|
author | ager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00> | Mon Apr 12 11:30:10 2010 +0000 |
committer | ager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00> | Mon Apr 12 11:30:10 2010 +0000 |
tree | bd7fbef7ace41cbcc4f88510a88a6428fb610300 | |
parent | 82e0bf6b39fd99b5f78a1b0ed432030b1a96ddde [diff] [blame] |
Push version 2.2.2 to trunk. Introduced new profiler API. Fixed random number generator to produce full 32 random bits. git-svn-id: http://v8.googlecode.com/svn/trunk@4386 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/math.js b/src/math.js index d17a6fd..fc3b132 100644 --- a/src/math.js +++ b/src/math.js
@@ -165,7 +165,7 @@ // ECMA 262 - 15.8.2.14 function MathRandom() { - return %_RandomPositiveSmi() / 0x40000000; + return %_RandomHeapNumber(); } // ECMA 262 - 15.8.2.15