From 5dc2621a32b971a6bb22d0df3f6be971caf1d6ba Mon Sep 17 00:00:00 2001 From: ricmoo Date: Wed, 27 Jul 2016 03:09:11 -0400 Subject: [PATCH] Fixed type in randomish. --- lib/randomish.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/randomish.js b/lib/randomish.js index f878c541..8dede6ef 100644 --- a/lib/randomish.js +++ b/lib/randomish.js @@ -25,8 +25,8 @@ function Randomish() { if (!data) { data = ''; } if (!expectedEntropyBits) { expectedEntropyBits = 0; } - if (parseInt(expectedEntropyBits) != expectedBits) { - throw new Error('invalid expectedBits'); + if (parseInt(expectedEntropyBits) != expectedEntropyBits) { + throw new Error('invalid expectedEntropyBits'); } data = (new Date()).getTime() + '-' + JSON.stringify(data) + '-' + data.toString();