summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2025-06-03 15:29:11 +0200
committerFriedemann Kleint <[email protected]>2025-06-06 09:37:58 +0200
commitef7e1a217901f4e1ffaf2c80adfe00fbda0c296c (patch)
tree2faf0a45c541eb21cd81e450053053305d031d0e /tools
parent2aca1b0e9aa4220241512f3a22d175a8277c1365 (diff)
repc: Create reproduceable buildsHEADdev
Set a deterministic hash value. Pick-to: 6.10 6.9 6.8 Fixes: QTBUG-130972 Task-number: QTBUG-105926 Change-Id: Ied9daee22475765b74145a78f9a3836a030efdfe Reviewed-by: Ivan Solovev <[email protected]> Reviewed-by: Joni Poikelin <[email protected]>
Diffstat (limited to 'tools')
-rw-r--r--tools/repc/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/repc/main.cpp b/tools/repc/main.cpp
index 37adf7e..1fbea32 100644
--- a/tools/repc/main.cpp
+++ b/tools/repc/main.cpp
@@ -8,6 +8,7 @@
#include <qjsondocument.h>
#include <qjsonobject.h>
#include <qjsonarray.h>
+#include <qhashfunctions.h>
#include "cppcodegenerator.h"
#include "repcodegenerator.h"
@@ -34,6 +35,8 @@ QT_USE_NAMESPACE
int main(int argc, char **argv)
{
+ QHashSeed::setDeterministicGlobalSeed();
+
QCoreApplication app(argc, argv);
QCoreApplication::setApplicationVersion(QString::fromLatin1(REPC_VERSION));