diff options
-rw-r--r-- | subsurface-desktop-main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp index d084f2a5f..2b7bf89f6 100644 --- a/subsurface-desktop-main.cpp +++ b/subsurface-desktop-main.cpp @@ -64,6 +64,14 @@ int main(int argc, char **argv) #else git_libgit2_init(); #endif + /* + * Initialize the random number generator - not really secure as + * this is based only on current time, but it should not matter + * that much in our context. Moreover this is better than + * the constant numbers we used to get before. + */ + qsrand(time(NULL)); + setup_system_prefs(); copy_prefs(&default_prefs, &prefs); fill_profile_color(); |