X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/28fffa93608756f34ee0fcc8ffe429a3fc472966..c8266e0330789dceef7ece0cd4fdcc927d0ac5fc:/gtk.c?ds=sidebyside diff --git a/gtk.c b/gtk.c index 859231f..ab10a11 100644 --- a/gtk.c +++ b/gtk.c @@ -82,10 +82,10 @@ struct frontend { void get_random_seed(void **randseed, int *randseedsize) { - time_t *tp = snew(time_t); - time(tp); - *randseed = (void *)tp; - *randseedsize = sizeof(time_t); + struct timeval *tvp = snew(struct timeval); + gettimeofday(tvp, NULL); + *randseed = (void *)tvp; + *randseedsize = sizeof(struct timeval); } void frontend_default_colour(frontend *fe, float *output)