From 61f51cfd9c1d9067c81958ba1636801ae707a457 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 11 Mar 2018 20:57:49 +0000 Subject: [PATCH] startrek: use time(NULL) --- Applications/games/startrek.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 */ -- 2.34.1