From c0bb359afca73bb0f3ba6feb3f93bbcb9166af2e Mon Sep 17 00:00:00 2001 From: Kevin Backhouse Date: Mon, 11 Oct 2021 18:07:48 +0100 Subject: [PATCH] Fix double call of String.fromCharCode. --- lib/prng.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prng.js b/lib/prng.js index c2f5f0518..d3bd22e05 100644 --- a/lib/prng.js +++ b/lib/prng.js @@ -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); } } }