public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98ecee3
)
startrek: use time(NULL)
author
Alan Cox
<alan@linux.intel.com>
Sun, 11 Mar 2018 20:57:49 +0000
(20:57 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Sun, 11 Mar 2018 20:57:49 +0000
(20:57 +0000)
Applications/games/startrek.c
patch
|
blob
|
history
diff --git
a/Applications/games/startrek.c
b/Applications/games/startrek.c
index
70b6342
..
d11f15f
100644
(file)
--- 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 */