Fixed randomish bug.
This commit is contained in:
parent
c697a5bc81
commit
3c67736cbb
@ -58,10 +58,10 @@ function Randomish() {
|
||||
var aesCbc = new aes.ModeOfOperation.cbc(key, this.feedEntropy());
|
||||
var result = new Buffer(0);
|
||||
while (result.length < length) {
|
||||
result = result.concat([result, this.feedEntropy()]);
|
||||
result = Buffer.concat([result, this.feedEntropy()]);
|
||||
}
|
||||
|
||||
return result;
|
||||
return result.slice(0, length);
|
||||
});
|
||||
|
||||
this.feedEntropy();
|
||||
|
Loading…
x
Reference in New Issue
Block a user