search for: isinit

Displaying 1 result from an estimated 1 matches for "isinit".

Did you mean: osinit
2008 Jul 18
1
system time - windows specific problem
...long tv_usec; // and microseconds }; */ struct timeval tv; //take the machine time gettimeofday (&tv, NULL); // [ 2^16 * microsecond ] xor [ second ] seed = ((unsigned long long) tv.tv_usec << 16) ^ tv.tv_sec; isInit = 1; } and the C function randSetSeed is called. (in the header file, I include <sys/time.h>). I think on windows there is no micro second precision and so the "randomize" seed is the same between two consecutive calls. I try many things to deal with this problem (for example i...