summaryrefslogtreecommitdiffstats
path: root/sys/sys/random.h
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-09-10 13:52:19 +0000
committermarkm <markm@FreeBSD.org>2000-09-10 13:52:19 +0000
commitbda6631159d812341f6580e946c1018370472ca5 (patch)
tree493f74f89936854101b5fafbba093a3d63291a1e /sys/sys/random.h
parent87a1e517ad08a9114153b8cd936c2382a0f3d06e (diff)
downloadFreeBSD-src-bda6631159d812341f6580e946c1018370472ca5.zip
FreeBSD-src-bda6631159d812341f6580e946c1018370472ca5.tar.gz
Large upgrade to the entropy device; mainly inspired by feedback
from many folk. o The reseed process is now a kthread. With SMPng, kthreads are pre-emptive, so the annoying jerkiness of the mouse is gone. o The data structures are protected by mutexes now, not splfoo()/splx(). o The cryptographic routines are broken out into their own subroutines. this facilitates review, and possible replacement if that is ever found necessary. Thanks to: kris, green, peter, jasone, grog, jhb Forgotten to thank: You know who you are; no offense intended.
Diffstat (limited to 'sys/sys/random.h')
-rw-r--r--sys/sys/random.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/random.h b/sys/sys/random.h
index 9fadb54..3d2543a1 100644
--- a/sys/sys/random.h
+++ b/sys/sys/random.h
@@ -31,7 +31,7 @@
#ifdef _KERNEL
-u_int read_random(void *, u_int);
+u_int read_random(struct proc *, void *, u_int);
enum esource { RANDOM_WRITE, RANDOM_KEYBOARD, RANDOM_MOUSE, RANDOM_NET, \
ENTROPYSOURCE };
OpenPOWER on IntegriCloud