Kernel/Time - Call rand() every time timers are checked
authorJohn Hodge <[email protected]>
Sun, 9 Feb 2014 14:39:10 +0000 (22:39 +0800)
committerJohn Hodge <[email protected]>
Sun, 9 Feb 2014 14:39:10 +0000 (22:39 +0800)
- Keeps the RNG ticking (and less predictable)

KernelLand/Kernel/time.c

index b0ea5e4..a6ccd8b 100644 (file)
@@ -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() )
        {

UCC git Repository :: git.ucc.asn.au