mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-21 20:49:00 -04:00
permit only wordcount > 0
This commit is contained in:
parent
044feea23a
commit
1d32695f10
3 changed files with 9 additions and 3 deletions
|
@ -45,7 +45,13 @@ double PassphraseGenerator::calculateEntropy(QString passphrase)
|
|||
|
||||
void PassphraseGenerator::setWordCount(int wordCount)
|
||||
{
|
||||
m_wordCount = wordCount;
|
||||
if (wordCount > 0) {
|
||||
m_wordCount = wordCount;
|
||||
} else {
|
||||
// safe default if something goes wrong
|
||||
m_wordCount = 7;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void PassphraseGenerator::setWordlist(QString path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue