mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
<=
This commit is contained in:
@@ -277,7 +277,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
|
||||
}
|
||||
|
||||
private async appendRandomNumberToRandomWord(wordList: string[]) {
|
||||
if (wordList == null || wordList.length < 0) {
|
||||
if (wordList == null || wordList.length <= 0) {
|
||||
return;
|
||||
}
|
||||
const index = await this.cryptoService.randomNumber(0, wordList.length - 1);
|
||||
|
||||
Reference in New Issue
Block a user