X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/af98b4ecc7b8ab3dc60fabbcc883868c8a805818..aa192f6d7ece3eefc304338f852824cc15be6909:/src/xbt/xbt_main.c diff --git a/src/xbt/xbt_main.c b/src/xbt/xbt_main.c index 89a67a6471..e09d03d4fb 100644 --- a/src/xbt/xbt_main.c +++ b/src/xbt/xbt_main.c @@ -35,6 +35,7 @@ int xbt_initialized = 0; */ static void xbt_preinit(void) _XBT_GNUC_CONSTRUCTOR(200); static void xbt_postexit(void); +static unsigned int seed = 2147483647; #ifdef _XBT_WIN32 # undef _XBT_NEED_INIT_PRAGMA @@ -118,8 +119,9 @@ void xbt_init(int *argc, char **argv) xbt_dynar_push(xbt_cmdline,&(argv[i])); } - srand((unsigned int) time(NULL)); - + srand(seed); + srand48(seed); + xbt_log_init(argc, argv); }