Fixed type in randomish.

This commit is contained in:
ricmoo 2016-07-27 03:09:11 -04:00
parent c024f88ce1
commit 5dc2621a32
1 changed files with 2 additions and 2 deletions

View File

@ -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();