Fixed type in randomish.
This commit is contained in:
parent
c024f88ce1
commit
5dc2621a32
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue