diff --git a/src/main.cpp b/src/main.cpp index 791f7f75a..dacd57b8a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,6 +27,9 @@ #include "she/she.h" #include "ui/base.h" +#include +#include + #ifdef WIN32 #include #endif @@ -71,6 +74,9 @@ static bool get_memory_dump_filename(std::string& filename) // ASEPRITE entry point int main(int argc, char* argv[]) { + // Initialize the random seed. + std::srand(static_cast(std::time(NULL))); + #ifdef WIN32 CoInitialize(NULL); #endif