mirror of
https://github.com/vicr123/theshell.git
synced 2025-01-22 11:52:01 -05:00
Fix ambiguous types on some systems
This commit is contained in:
parent
e0b1ffe607
commit
fe486acfe6
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ bool setMousePassword(QString mousePassword, QString passwordFile) {
|
|||
const char* saltCharacters = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
|
||||
for (int i = 0; i < 8; i++) {
|
||||
salt.append(saltCharacters[QRandomGenerator::securelySeeded().bounded(0, strlen(saltCharacters))]);
|
||||
salt.append(saltCharacters[QRandomGenerator::securelySeeded().bounded(quint32(0), static_cast<quint32>(strlen(saltCharacters)))]);
|
||||
}
|
||||
|
||||
QString hashedPassword = QString::fromLocal8Bit(crypt(mousePassword.toLocal8Bit().data(), salt.data()));
|
||||
|
|
Loading…
Reference in a new issue