Chromium Code Reviews| Index: src/math.js |
| =================================================================== |
| --- src/math.js (revision 4353) |
| +++ src/math.js (working copy) |
| @@ -165,7 +165,7 @@ |
| // ECMA 262 - 15.8.2.14 |
| function MathRandom() { |
| - return %_RandomPositiveSmi() / 0x40000000; |
| + return %_RandomHeapNumber(); |
| } |
| // ECMA 262 - 15.8.2.15 |