diff options
author | Simon Rettberg | 2017-02-24 14:51:26 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-02-24 14:51:26 +0100 |
commit | 0992182965d21ce2a8c1325205923a4ecd341e40 (patch) | |
tree | e6818a4620ccffb8a7e9bb78521fd1c908ba6f00 /src/speedcheck.cpp | |
parent | initial commit (diff) | |
download | speedcheck-0992182965d21ce2a8c1325205923a4ecd341e40.tar.gz speedcheck-0992182965d21ce2a8c1325205923a4ecd341e40.tar.xz speedcheck-0992182965d21ce2a8c1325205923a4ecd341e40.zip |
Start sequential read at random offset; don't re-init prng every time
Diffstat (limited to 'src/speedcheck.cpp')
-rw-r--r-- | src/speedcheck.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/speedcheck.cpp b/src/speedcheck.cpp index 8ff8c93..b4dd718 100644 --- a/src/speedcheck.cpp +++ b/src/speedcheck.cpp @@ -21,6 +21,7 @@ SpeedCheck::SpeedCheck(QString fileName) connect(_ui->btnQuit, SIGNAL(clicked(bool)), this, SLOT(quitClicked(bool))); _timer.setInterval(200); connect(&_timer, SIGNAL(timeout()), this, SLOT(updateTimer())); + qsrand((uint)QCoreApplication::applicationPid()); } SpeedCheck::~SpeedCheck() |