diff options
author | Simon Rettberg | 2017-12-01 18:49:29 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-01 18:49:29 +0100 |
commit | 48c1d46014408a0a15b26d3f23fab8c7966bf719 (patch) | |
tree | c573c34db80eac03b3f3f435a748e51c6ae00806 | |
parent | Fix connection problems qith Qt5 (again) (diff) | |
download | pvs2-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.cpp | 3 |
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(); } |