From bbcee35ec23f12ba9ad62227a8e0b56bbde751af Mon Sep 17 00:00:00 2001
From: Sebastian Goth <seezer@roath.org>
Date: Thu, 9 Oct 2008 09:36:10 +0200
Subject: [PATCH] Default nicknames are now randomized correctly(tm)

---
 src/common/identity.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/common/identity.cpp b/src/common/identity.cpp
index dcec2d9..1776ba8 100644
--- a/src/common/identity.cpp
+++ b/src/common/identity.cpp
@@ -20,6 +20,7 @@
 
 #include <QMetaProperty>
 #include <QVariantMap>
+#include <QDateTime>
 
 #include "identity.h"
 
@@ -62,7 +63,9 @@ void Identity::setToDefaults() {
   setIdentityName(tr("<empty>"));
   setRealName(tr("Quassel IRC User"));
   QStringList n;
-  n << QString("quassel%1").arg(qrand() & 0xff); // FIXME provide more sensible default nicks
+  uint seed = QDateTime::currentDateTime().toTime_t();
+  qsrand(seed);
+  n << QString("quassel%1").arg(qrand() & 0xff);
   setNicks(n);
   setAwayNick("");
   setAwayNickEnabled(false);
-- 
1.5.6.2.292.ga9a3

