File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ var Device = require('../device');
1010var GetFastValue = require ( '../utils/object/GetFastValue' ) ;
1111var GetValue = require ( '../utils/object/GetValue' ) ;
1212var IsPlainObject = require ( '../utils/object/IsPlainObject' ) ;
13- var MATH = require ( '../math/const' ) ;
14- var RND = require ( '../math/random-data-generator/RandomDataGenerator' ) ;
13+ var PhaserMath = require ( '../math/' ) ;
1514var NOOP = require ( '../utils/NOOP' ) ;
1615var DefaultPlugins = require ( '../plugins/DefaultPlugins' ) ;
1716var ValueToColor = require ( '../display/color/ValueToColor' ) ;
@@ -370,9 +369,7 @@ var Config = new Class({
370369 */
371370 this . seed = GetValue ( config , 'seed' , [ ( Date . now ( ) * Math . random ( ) ) . toString ( ) ] ) ;
372371
373- MATH . RND = new RND ( ) ;
374-
375- MATH . RND . init ( this . seed ) ;
372+ PhaserMath . RND = new PhaserMath . RandomDataGenerator ( this . seed ) ;
376373
377374 /**
378375 * @const {string} Phaser.Boot.Config#gameTitle - The title of the game.
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ var MATH_CONST = {
5353
5454 /**
5555 * An instance of the Random Number Generator.
56+ * This is not set until the Game boots.
5657 *
5758 * @name Phaser.Math.RND
5859 * @type {Phaser.Math.RandomDataGenerator }
You can’t perform that action at this time.
0 commit comments