From 28292170d8c02743cabfabba3a1623b8d71b9aa2 Mon Sep 17 00:00:00 2001 From: ctrlaltca Date: Sat, 8 Jul 2023 01:38:33 +0200 Subject: Port to (and require) Qt 5.15. Drop KDE4 support, fix KDE5 (#2541) * Port to (and require) Qt 5.15. Drop KDE4 support, implement KDE5 support where needed. --------- Co-authored-by: Fabio Bas --- src/modules/objects/qthttp/qhttpauthenticator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/objects/qthttp') diff --git a/src/modules/objects/qthttp/qhttpauthenticator.cpp b/src/modules/objects/qthttp/qhttpauthenticator.cpp index 194fe856d..9acb7717b 100644 --- a/src/modules/objects/qthttp/qhttpauthenticator.cpp +++ b/src/modules/objects/qthttp/qhttpauthenticator.cpp @@ -50,6 +50,7 @@ #include #include #include +#include //#define NTLMV1_CLIENT @@ -284,7 +285,7 @@ void QHttpAuthenticator::detach() if(!d) { d = new QHttpAuthenticatorPrivate; - d->ref.store(1); + d->ref.storeRelaxed(1); return; } @@ -351,7 +352,7 @@ bool QHttpAuthenticator::isNull() const QHttpAuthenticatorPrivate::QHttpAuthenticatorPrivate() : ref(0), method(None), hasFailed(false), phase(Start), nonceCount(0) { - cnonce = QCryptographicHash::hash(QByteArray::number(qrand(), 16) + QByteArray::number(qrand(), 16), + cnonce = QCryptographicHash::hash(QByteArray::number(QRandomGenerator::global()->generate(), 16) + QByteArray::number(QRandomGenerator::global()->generate(), 16), QCryptographicHash::Md5) .toHex(); nonceCount = 0; -- cgit v1.3.1-10-gc9f91