From: Christian Heller Date: Wed, 29 May 2013 01:51:40 +0000 (+0200) Subject: Removed unused variable start value. X-Git-Tag: tce~1269 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bprefix%7D%7D/static/foo.html?a=commitdiff_plain;h=67edb8498ab6742a17d03d7abeaf43fb91922453;p=plomrogue Removed unused variable start value. --- diff --git a/roguelike.c b/roguelike.c index afe73ce..e028845 100644 --- a/roguelike.c +++ b/roguelike.c @@ -12,7 +12,7 @@ uint16_t rrand(char use_seed, uint32_t new_seed) { // Pseudo-random number generator (LGC algorithm). Use instead of rand() to ensure portable predictability. - static uint32_t seed = 0; + static uint32_t seed; if (0 != use_seed) seed = new_seed; seed = ((seed * 1103515245) + 12345) % 2147483648; // Values as recommended by POSIX.1-2001 (see rand(3)).