mirror of https://github.com/qt/qtbase.git
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:
parent
cdbc76360a
commit
9e214cbcdd
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue