kernel - Update random number generator
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 15 May 2010 16:54:37 +0000 (09:54 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 15 May 2010 16:54:37 +0000 (09:54 -0700)
commit31f10bcb1fbc0b3a543164ae7f38d9cf8855fd17
tree662e5c62adac27a2c7ed66cbee3179022c2244b3
parent1b0caf1287dff290ef843312248e01dc8e07bb89
kernel - Update random number generator

* Update the random number generator with recommended changes to IBAA.
  This addresses a short-cycle problem and prevents bad initial states.

* Passes diehard (as did the original).

* Note that DragonFly continuously injects entropy and was likely not
  subject to these issues, and with these changes is even less so.

Submitted-by: Robin Carey <robin.carey1@googlemail.com>
sys/kern/kern_nrandom.c