Bootstrap: remove QRandomGenerator

The bootstrapped tools really mustn't produce random output (they must
always be reproducible exactly). Therefore, ensure we don't need this
file.

Change-Id: I01ec3c774d9943adb903fffd17b7eb94dbd4be89
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Thiago Macieira 2024-02-27 20:13:28 -08:00
parent cdbc76360a
commit 9e214cbcdd
3 changed files with 4 additions and 3 deletions

View File

@ -992,7 +992,7 @@ QUuid QUuid::createUuid()
return result;
}
#else // Q_OS_WIN
#elif !defined(QT_BOOTSTRAPPED)
QUuid QUuid::createUuid()
{
@ -1006,7 +1006,7 @@ QUuid QUuid::createUuid()
return result;
}
#endif // !Q_OS_WIN
#endif // !Q_OS_WIN && !QT_BOOTSTRAPPED
/*!
\fn bool QUuid::operator==(const GUID &guid) const

View File

@ -85,6 +85,7 @@ struct HashSeedStorage
void resetSeed()
{
#ifndef QT_BOOTSTRAPPED
if (state().state < AlreadyInitialized)
return;
@ -92,6 +93,7 @@ struct HashSeedStorage
QRandomGenerator *generator = QRandomGenerator::system();
seeds[0].storeRelaxed(sizeof(size_t) > sizeof(quint32)
? generator->generate64() : generator->generate());
#endif
}
void clearSeed()

View File

@ -20,7 +20,6 @@ qt_internal_extend_target(Bootstrap
../../corelib/global/qmalloc.cpp
../../corelib/global/qnumeric.cpp
../../corelib/global/qoperatingsystemversion.cpp
../../corelib/global/qrandom.cpp
../../corelib/global/qtenvironmentvariables.cpp
../../corelib/io/qabstractfileengine.cpp
../../corelib/io/qbuffer.cpp