aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r--lumina-desktop/LSession.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index 0507f920..00728d23 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -10,6 +10,7 @@
#include <Phonon/MediaObject>
#include <Phonon/AudioOutput>
#include <QThread>
+#include <QTime>
//X includes (these need to be last due to Qt compile issues)
#include <X11/Xlib.h>
@@ -57,6 +58,8 @@ LSession::~LSession(){
void LSession::setupSession(){
qDebug() << "Initializing Session";
+ //Seed random number generator (if needed)
+ qsrand( QTime::currentTime().msec() );
//Setup the QSettings default paths
QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina");
sessionsettings = new QSettings("LuminaDE", "sessionsettings");
bgstack15