aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/QXmppStream.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/QXmppStream.cpp b/source/QXmppStream.cpp
index 91b4c1cc..a0ccf2b5 100644
--- a/source/QXmppStream.cpp
+++ b/source/QXmppStream.cpp
@@ -64,6 +64,9 @@ QXmppStream::QXmppStream(QXmppClient* client)
m_vCardManager(m_client),
m_authStep(0)
{
+ // Make sure the random number generator is seeded
+ qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
+
bool check = QObject::connect(&m_socket, SIGNAL(hostFound()),
this, SLOT(socketHostFound()));
Q_ASSERT(check);