From a452f552e43af755fa0dc854f7fc11d3977f6e9a Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sat, 21 Jun 2008 16:27:36 +0200 Subject: [PATCH] Use qsrand initialization from Qt examples Since for some bizarre (and locally unreproducable) reason the default nick for newly created identities seems to be "quassel251" for many people, we try a different way of seeding the random generator. No idea why localtime wouldn't work... --- src/common/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/main.cpp b/src/common/main.cpp index dca70339..9dab54c5 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -79,7 +79,7 @@ int main(int argc, char **argv) { QApplication app(argc, argv); #endif - qsrand(QDateTime::currentDateTime().toTime_t()); + qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); // Set up i18n support QLocale locale = QLocale::system(); -- 2.20.1