From: Alan Cox Date: Sun, 11 Mar 2018 20:57:49 +0000 (+0000) Subject: startrek: use time(NULL) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=61f51cfd9c1d9067c81958ba1636801ae707a457;p=FUZIX.git startrek: use time(NULL) --- diff --git a/Applications/games/startrek.c b/Applications/games/startrek.c index 70b6342c..d11f15f9 100644 --- a/Applications/games/startrek.c +++ b/Applications/games/startrek.c @@ -1780,9 +1780,7 @@ int getline(char *s) /* Seed the randomizer with the timer */ void randomize(void) { - time_t timer; - - srand((unsigned) time(&timer)); + srand((unsigned) time(NULL)); } /* Returns an integer from 1 to iSpread */