From 21e2216b1bc7c958db22fb5e191537b25ec87de7 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Sun, 29 Nov 2015 15:38:04 -0500 Subject: [PATCH] Math: Deprecated random16(). https://code.google.com/p/v8/issues/detail?id=4566 --- src/math/Math.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/math/Math.js b/src/math/Math.js index 73de112c47..f31bba39c4 100644 --- a/src/math/Math.js +++ b/src/math/Math.js @@ -89,12 +89,10 @@ THREE.Math = { }, - // Random float from <0, 1> with 16 bits of randomness - // (standard Math.random() creates repetitive patterns when applied over larger space) - random16: function () { - return ( 65280 * Math.random() + 255 * Math.random() ) / 65535; + console.warn( 'THREE.Math.random16() has been deprecated. Use Math.random() instead.' ); + return Math.random(); }, -- GitLab