From: John Hodge Date: Sun, 9 Feb 2014 14:39:10 +0000 (+0800) Subject: Kernel/Time - Call rand() every time timers are checked X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=9c05263776f7fc01de6a3247f9d5f88ed58a9ddc;p=tpg%2Facess2.git Kernel/Time - Call rand() every time timers are checked - Keeps the RNG ticking (and less predictable) --- diff --git a/KernelLand/Kernel/time.c b/KernelLand/Kernel/time.c index b0ea5e45..a6ccd8be 100644 --- a/KernelLand/Kernel/time.c +++ b/KernelLand/Kernel/time.c @@ -74,6 +74,9 @@ void Timer_CallbackThread(void *Unused) */ void Timer_CallTimers() { + // Tick the random number generator every time timers are checked + rand(); + SHORTLOCK(&gTimers_ListLock); while( gTimers && gTimers->FiresAfter < now() ) {