initialize rand() seed on startup
authorpk910 <philipp@zoelle1.de>
Tue, 1 Nov 2011 23:45:29 +0000 (00:45 +0100)
committerpk910 <philipp@zoelle1.de>
Tue, 1 Nov 2011 23:45:29 +0000 (00:45 +0100)
src/cmd_funcmds.c

index d4b2642fa63ba1ac33fb90b4f7a9caa431565006..3eadbf8ab22c7e270ccea456b82767c344297921 100644 (file)
@@ -32,6 +32,7 @@ static const struct default_language_entry msgtab[] = {
 
 void init_funcmds() {
     register_default_language_table(msgtab);
+    srand(time(NULL));
 }
 
 struct current_funcmd_header {