From 10695e51ee379383baa5befac5f54edf13f3412e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 26 Oct 2020 10:47:57 -0700 Subject: [PATCH] cleanup: remove unnecessary call to qsrand We actually don't use random numbers anywhere outside TestGitStorage. Signed-off-by: Dirk Hohndel --- subsurface-desktop-main.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp index be5b7b7fe..25891e3c0 100644 --- a/subsurface-desktop-main.cpp +++ b/subsurface-desktop-main.cpp @@ -79,13 +79,6 @@ 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_computer_list();