projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
911ef2e
)
Use qsrand initialization from Qt examples
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 21 Jun 2008 14:27:36 +0000
(16:27 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 21 Jun 2008 14:27:36 +0000
(16:27 +0200)
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
patch
|
blob
|
history
diff --git
a/src/common/main.cpp
b/src/common/main.cpp
index
dca7033
..
9dab54c
100644
(file)
--- 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(Q
DateTime::currentDateTime().toTime_t(
));
+ qsrand(Q
Time(0,0,0).secsTo(QTime::currentTime()
));
// Set up i18n support
QLocale locale = QLocale::system();