1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00
This commit is contained in:
Kyle Spearrin
2019-07-01 15:36:55 -04:00
parent 10c865b33d
commit 53bf68de49

View File

@@ -277,7 +277,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
} }
private async appendRandomNumberToRandomWord(wordList: string[]) { private async appendRandomNumberToRandomWord(wordList: string[]) {
if (wordList == null || wordList.length < 0) { if (wordList == null || wordList.length <= 0) {
return; return;
} }
const index = await this.cryptoService.randomNumber(0, wordList.length - 1); const index = await this.cryptoService.randomNumber(0, wordList.length - 1);