rcc: Always seed the hash with 0
That was already done to pass the auto tests, but the randomization also bites for reproducible builds. Change-Id: Ibf4da513059deb5a806d2ac1a83c1994edf09d4a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
33b1662f16
commit
300bd7fff8
@ -435,11 +435,10 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
// rcc uses a QHash to store files in the resource system.
|
||||
// we must force a certain hash order when testing or tst_rcc will fail, see QTBUG-25078
|
||||
if (Q_UNLIKELY(!qEnvironmentVariableIsEmpty("QT_RCC_TEST"))) {
|
||||
qSetGlobalQHashSeed(0);
|
||||
if (qGlobalQHashSeed() != 0)
|
||||
qFatal("Cannot force QHash seed for testing as requested");
|
||||
}
|
||||
// similar requirements exist for reproducibly builds.
|
||||
qSetGlobalQHashSeed(0);
|
||||
if (qGlobalQHashSeed() != 0)
|
||||
qWarning("Cannot force QHash seed");
|
||||
|
||||
return QT_PREPEND_NAMESPACE(runRcc)(argc, argv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user