Skip to content

Commit

Permalink
Merge pull request #11 from phoboslab/patch-1
Browse files Browse the repository at this point in the history
Fix random noise generator, see #10
  • Loading branch information
devongovett committed Jun 17, 2016
2 parents 43e93d3 + 1f98342 commit 29b02b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ics.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ ICStream.prototype = {
var energy = 0;

for (var k = 0; k < width; k++) {
this.randomState *= 1664525 + 1013904223;
this.randomState = (this.randomState * (1664525 + 1013904223))|0;
data[off + k] = this.randomState;
energy += data[off + k] * data[off + k];
}
Expand Down

0 comments on commit 29b02b6

Please sign in to comment.