Dont do qsrand on Qt versions higher than Qt 5.10
This commit is contained in:
@@ -160,7 +160,9 @@ int main(int argc, char* argv[]) {
|
|||||||
// Seed the random number generators.
|
// Seed the random number generators.
|
||||||
time_t t = time(nullptr);
|
time_t t = time(nullptr);
|
||||||
srand(t);
|
srand(t);
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
|
||||||
qsrand(t);
|
qsrand(t);
|
||||||
|
#endif
|
||||||
|
|
||||||
Utilities::IncreaseFDLimit();
|
Utilities::IncreaseFDLimit();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user