X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/6a5fa4e03967ab980cdc7ef96a42400bc29b4414..966a34507f7bc274931edb5b84346f5e36e042fb:/src/sim/rand.c diff --git a/src/sim/rand.c b/src/sim/rand.c index 6311526..54dc9e8 100644 --- a/src/sim/rand.c +++ b/src/sim/rand.c @@ -41,15 +41,14 @@ static unsigned QUAD next = 1; int -sim_rand() +sim_rand(void) { next = next * 1103515245 + 12345; return ((next % ((SIM_RAND_MAX + 1) <<8)) >>8); } void -sim_srand(seed) -u_int seed; +sim_srand(u_int seed) { next = seed; }