diff --git a/ext/libclementine-common/core/closure.cpp b/ext/libclementine-common/core/closure.cpp index 4ae3e25e8..247750197 100644 --- a/ext/libclementine-common/core/closure.cpp +++ b/ext/libclementine-common/core/closure.cpp @@ -17,6 +17,8 @@ #include "closure.h" +#include + #include "core/logging.h" #include "core/timeconstants.h" diff --git a/ext/libclementine-common/core/closure.h b/ext/libclementine-common/core/closure.h index 5c897ec3f..4a3b3bee2 100644 --- a/ext/libclementine-common/core/closure.h +++ b/ext/libclementine-common/core/closure.h @@ -23,7 +23,6 @@ #include #include #include -#include #include #include diff --git a/src/main.cpp b/src/main.cpp index 5c569203d..84673a7c3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -303,10 +303,9 @@ int main(int argc, char *argv[]) { logging::SetLevels(options.log_levels()); g_log_set_default_handler(reinterpret_cast(&logging::GLog), NULL); - // Seed the random number generator + // Seed the random number generators. time_t t = time(NULL); - srand(time(NULL)); - qDebug() << "Seeding with:" << t; + srand(t); qsrand(t); IncreaseFDLimit();