mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 23:17:13 +03:00
[aes] fix out of bounds access.
This commit is contained in:
parent
60729f1fc4
commit
fd00e180f5
1 changed files with 1 additions and 1 deletions
|
@ -2060,7 +2060,7 @@ QStringList getRandomWords(int nr)
|
|||
|
||||
QStringList randomWords;
|
||||
while(randomWords.size() != nr) {
|
||||
QString currWord = wordList.at(rand());
|
||||
QString currWord = wordList.at(rand() % wordList.size());
|
||||
if (!randomWords.contains(currWord)) {
|
||||
randomWords.append(currWord);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue