Skip to content

Commit

Permalink
Fix double call of String.fromCharCode.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse authored and dmitrizagidulin committed Oct 12, 2021
1 parent c90cd85 commit c0bb359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prng.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ prng.create = function(plugin) {
// throw in more pseudo random
next = seed >>> (i << 3);
next ^= Math.floor(Math.random() * 0x0100);
b.putByte(String.fromCharCode(next & 0xFF));
b.putByte(next & 0xFF);
}
}
}
Expand Down

0 comments on commit c0bb359

Please sign in to comment.