aboutsummaryrefslogtreecommitdiff
path: root/connectiondata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'connectiondata.cpp')
-rw-r--r--connectiondata.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/connectiondata.cpp b/connectiondata.cpp
index cd91ef27..6f15577e 100644
--- a/connectiondata.cpp
+++ b/connectiondata.cpp
@@ -21,7 +21,6 @@
#include "logging.h"
#include <QtNetwork/QNetworkAccessManager>
-#include <cstdlib>
using namespace QMatrixClient;
@@ -38,7 +37,7 @@ struct ConnectionData::Private
QString lastEvent;
mutable unsigned int txnCounter = 0;
- const int id = std::rand(); // We don't really care about pure randomness
+ const qint64 id = QDateTime::currentMSecsSinceEpoch();
};
ConnectionData::ConnectionData(QUrl baseUrl)