Fixed RandomDataGenerator.sow

This commit is contained in:
Richard Davey
2013-10-08 22:55:27 +01:00
parent f5584bdfe5
commit 1c577d3674
5 changed files with 54 additions and 7 deletions
+3 -1
View File
@@ -80,10 +80,12 @@ Phaser.RandomDataGenerator.prototype = {
this.s0 = this.hash(' ');
this.s1 = this.hash(this.s0);
this.s2 = this.hash(this.s1);
this.c = 1;
var seed;
for (var i = 0; seed = seeds[i++]; ) {
for (var i = 0; seed = seeds[i++]; )
{
this.s0 -= this.hash(seed);
this.s0 += ~~(this.s0 < 0);
this.s1 -= this.hash(seed);