summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-01 18:49:29 +0100
committerSimon Rettberg2017-12-01 18:49:29 +0100
commit48c1d46014408a0a15b26d3f23fab8c7966bf719 (patch)
treec573c34db80eac03b3f3f435a748e51c6ae00806
parentFix connection problems qith Qt5 (again) (diff)
downloadpvs2-48c1d46014408a0a15b26d3f23fab8c7966bf719.tar.gz
pvs2-48c1d46014408a0a15b26d3f23fab8c7966bf719.tar.xz
pvs2-48c1d46014408a0a15b26d3f23fab8c7966bf719.zip
[server] Init qrand before creating main window, so session id is random
-rw-r--r--src/server/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/main.cpp b/src/server/main.cpp
index 9c44adf..34a585c 100644
--- a/src/server/main.cpp
+++ b/src/server/main.cpp
@@ -22,6 +22,7 @@ void usage()
int main(int argc, char** argv)
{
+ qsrand((uint)QDateTime::currentMSecsSinceEpoch());
ServerApp app(argc, argv);
for (QString a : app.arguments()) {
@@ -43,8 +44,6 @@ int main(int argc, char** argv)
break;
}
}
- qsrand((uint)QDateTime::currentMSecsSinceEpoch());
-
return app.exec();
}