2
0
mirror of synced 2025-02-24 03:58:06 +00:00

Fixed randomish bug.

This commit is contained in:
ricmoo 2016-08-07 15:17:53 -04:00
parent c697a5bc81
commit 3c67736cbb

View File

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