diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -58,6 +58,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(); |