aboutsummaryrefslogtreecommitdiff
path: root/src/wx/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/main.cpp')
-rw-r--r--src/wx/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wx/main.cpp b/src/wx/main.cpp
index 214996a..576a81d 100644
--- a/src/wx/main.cpp
+++ b/src/wx/main.cpp
@@ -33,6 +33,8 @@ wxIMPLEMENT_APP_NO_MAIN(wxApp_melonDS);
int main(int argc, char** argv)
{
+ srand(time(NULL));
+
// http://stackoverflow.com/questions/14543333/joystick-wont-work-using-sdl
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");