]> gitweb.hamatoma.de Git - reqt/commitdiff
QStorageInfo excluded for versions < 5.4
authorhama <hama@siduction.net>
Sun, 26 Jun 2016 07:50:44 +0000 (09:50 +0200)
committerhama <hama@siduction.net>
Sun, 26 Jun 2016 07:50:44 +0000 (09:50 +0200)
base/ReRandomizer.cpp

index 4e95a2e1cc76e5947d94d305f2515824dc21f27d..6904efded5bdd676921da668ce6b0077832894e4 100644 (file)
@@ -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);