From 0992182965d21ce2a8c1325205923a4ecd341e40 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 24 Feb 2017 14:51:26 +0100 Subject: Start sequential read at random offset; don't re-init prng every time --- src/speedcheck.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/speedcheck.cpp') 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() -- cgit v1.2.3-55-g7522