diff --git a/.gitignore b/.gitignore index 127365b..3096838 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,7 @@ zec-qt-wallet_resource* workspace.code-workspace *.zip *.tar.gz +*.xcsettings +.DS_Store +*.mak +*.plist diff --git a/src/main.cpp b/src/main.cpp index 99163de..9989956 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,14 +19,17 @@ int main(int argc, char *argv[]) #endif // QRandomGenerator generates a secure random number, which we use to seed. -#if QT_VERSION >= 0x051000 +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) unsigned int seed = QRandomGenerator::securelySeeded().generate(); + qDebug() << "yes" << QT_VERSION; #else // This will be used only during debugging for compatibility reasons unsigned int seed = std::time(0); + qDebug() << "no" << QT_VERSION; #endif std::srand(seed); + Settings::init(); Settings::getInstance()->setExecName(argv[0]); diff --git a/src/precompiled.h b/src/precompiled.h index 447436a..7719f1a 100644 --- a/src/precompiled.h +++ b/src/precompiled.h @@ -9,7 +9,7 @@ #include -#if QT_VERSION >= 0x051000 +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) #include #endif