photonstorm/phaser — pull request #619 by tylerjhutchison (2014-03-20 23:01:43+00:00)
Title: Fixed: randomDataGenerator bug in parseConfig

If a Phaser.Game is created using a config object Phaser.Game.rnd will only be set if the 'seed' parameter is defined in the config object.
Otherwise Phaser.Game.rnd will remain null.
This proposed change is adding an else conditional that will ensure Phaser.Game.rnd is being set.
I tried to write this with the same code style that the 'state' conditional is using.
I set the default option in the else conditional and not at the declaration of var seed to avoid doing unnecessary Math if config['seed'] has already been set.