mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +00:00
[PM-8857] fix passphrase missing number (#9634)
This commit is contained in:
@@ -47,7 +47,7 @@ export class PassphraseGeneratorStrategy
|
||||
// select which word gets the number, if any
|
||||
let luckyNumber = -1;
|
||||
if (o.includeNumber) {
|
||||
luckyNumber = await this.randomizer.uniform(0, o.numWords);
|
||||
luckyNumber = await this.randomizer.uniform(0, o.numWords - 1);
|
||||
}
|
||||
|
||||
// generate the passphrase
|
||||
|
||||
Reference in New Issue
Block a user