Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin Modified Files: main.c Log Message: - init the randomizer - call shutdown always (if there was no call to ewl_main) =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/main.c,v retrieving revision 1.94 retrieving revision 1.95 diff -u -3 -r1.94 -r1.95 --- main.c 14 Dec 2007 17:18:02 -0000 1.94 +++ main.c 14 Dec 2007 17:30:07 -0000 1.95 @@ -20,6 +20,7 @@ #include <fcntl.h> #include <ctype.h> #include <unistd.h> +#include <time.h> #include <sys/types.h> #include <sys/stat.h> #include <Ecore.h> @@ -121,6 +122,9 @@ int unit_test = 0, ran_test = 0, all_tests = 0, profile_tests = 0; double start_time = 0, end_time = 0; + /* init the randomizer */ + srand(time(NULL)); + /* check for any flags before ewl_init to avoid opening the display */ for (i = 0; i < argc; i++) { @@ -218,7 +222,7 @@ if (!unit_test) ewl_main(); - else if (ran_test) + else ewl_shutdown(); if (unit_test && !ran_test) ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs