QTfrontend/main.cpp
changeset 127 ca70467bd0a8
parent 123 6987769ced3d
child 128 223522298250
--- a/QTfrontend/main.cpp	Sun Aug 27 12:41:27 2006 +0000
+++ b/QTfrontend/main.cpp	Sun Aug 27 13:16:40 2006 +0000
@@ -36,6 +36,7 @@
 #include <QLocale>
 #include <QMessageBox>
 #include <QFileInfo>
+#include <QDateTime>
 #include "hwform.h"
 #include "hwconsts.h"
 
@@ -47,6 +48,10 @@
 {
 	QApplication app(argc, argv);
 
+	QDateTime now = QDateTime::currentDateTime();
+	QDateTime zero;
+	srand(now.secsTo(zero));
+
 	Q_INIT_RESOURCE(hedgewars);
 
 	QTranslator Translator;
@@ -55,7 +60,7 @@
 
 	QDir mydir(".");
 	mydir.cd("bin");
-	
+
 	bindir = new QDir(mydir);
 	cfgdir = new QDir();