From: hama Date: Sun, 26 Jun 2016 07:50:44 +0000 (+0200) Subject: QStorageInfo excluded for versions < 5.4 X-Git-Url: https://gitweb.hamatoma.de/?a=commitdiff_plain;h=5f42b7f54e04000a21b9babe60b2812e86190e71;p=reqt QStorageInfo excluded for versions < 5.4 --- diff --git a/base/ReRandomizer.cpp b/base/ReRandomizer.cpp index 4e95a2e..6904efd 100644 --- a/base/ReRandomizer.cpp +++ b/base/ReRandomizer.cpp @@ -369,8 +369,12 @@ ReRandomizer::seed_t ReRandomizer::pseudoTrueRandom(){ quint64 random2 = QDateTime::currentMSecsSinceEpoch(); quint64 random3 = hash(QDir::homePath().toLatin1()) + (hash(QDir::currentPath().toLocal8Bit()) << 15); +#ifdef __QT_BELOW_5_4 + qint64 random4 = 0x4711089deadbeaf; +#else QStorageInfo storage = QStorageInfo::root(); qint64 random4 = storage.bytesAvailable(); +#endif static int s_counter = 0; void* dummy2 = malloc(1);