1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01: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[]) {
if (wordList == null || wordList.length < 0) {
if (wordList == null || wordList.length <= 0) {
return;
}
const index = await this.cryptoService.randomNumber(0, wordList.length - 1);