mirror of https://github.com/keeweb/keeweb.git
simplified generator code a bit
This commit is contained in:
parent
df90fc9c33
commit
4ded2c1848
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue