]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
Added my awesome MT1997 PRNG, and use it instead of stdio's rand()/srand() .. which...
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
index aa1e3a0d285a43e0b8497fd4bbe4f47d6608354d..a52e70449c4a038aa4dc372f19b1dd2fc13451b5 100644 (file)
--- a/main.c
+++ b/main.c
@@ -23,6 +23,7 @@
  */
 #include "gmqcc.h"
 #include "lexer.h"
+#include <time.h>
 
 /* TODO: cleanup this whole file .. it's a fuckign mess */
 
@@ -505,6 +506,8 @@ int main(int argc, char **argv) {
     con_init ();
     opts_init("progs.dat", COMPILER_GMQCC, (1024 << 3));
 
+    util_seed(time(0));
+
     if (!options_parse(argc, argv)) {
         return usage();
     }