QtBase tools: port away from deprecated qSetGlobalQHashSeed(0)

Use QHashSeed::setDeterministicGlobalSeed() instead

Task-number: QTBUG-105102
Change-Id: Ib7d4b6e7bca89870913a140d68bbdd6018e8f8ed
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
Ivan Solovev 2022-08-26 17:35:52 +02:00
parent c81d5ec19a
commit 35a50491e7
2 changed files with 2 additions and 2 deletions

View File

@ -423,7 +423,7 @@ bool qmake_setpwd(const QString &p)
int runQMake(int argc, char **argv)
{
qSetGlobalQHashSeed(0);
QHashSeed::setDeterministicGlobalSeed();
// stderr is unbuffered by default, but stdout buffering depends on whether
// there is a terminal attached. Buffering can make output from stderr and stdout

View File

@ -20,7 +20,7 @@ using namespace Qt::StringLiterals;
int runUic(int argc, char *argv[])
{
qSetGlobalQHashSeed(0); // set the hash seed to 0
QHashSeed::setDeterministicGlobalSeed();
QCoreApplication app(argc, argv);
QCoreApplication::setApplicationVersion(QString::fromLatin1(QT_VERSION_STR));