simplified generator code a bit

This commit is contained in:
antelle 2019-11-13 16:59:22 +01:00
parent df90fc9c33
commit 4ded2c1848
1 changed files with 1 additions and 4 deletions

View File

@ -38,10 +38,7 @@ const PasswordGenerator = {
if (!ranges.length) {
return '';
}
const pool = [];
for (let i = 0; i < ranges.length; i++) {
pool.push(...ranges[i]);
}
const pool = ranges.join('');
const randomBytes = kdbxweb.Random.getBytes(opts.length);
const chars = [];
for (let i = 0; i < opts.length; i++) {