summaryrefslogtreecommitdiffstats
path: root/sys/sys/random.h
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-07-23 11:08:16 +0000
committermarkm <markm@FreeBSD.org>2000-07-23 11:08:16 +0000
commit5cdbfcb1a2cf4b4ded5bff0b970f29e18fada454 (patch)
tree21be041cff086690f613f725fd550c3d4efd3aad /sys/sys/random.h
parent230f54e2d8923fa7f9d8407246ac8735f0245caf (diff)
downloadFreeBSD-src-5cdbfcb1a2cf4b4ded5bff0b970f29e18fada454.zip
FreeBSD-src-5cdbfcb1a2cf4b4ded5bff0b970f29e18fada454.tar.gz
Clean this up with some BDE-inspired fixes.
o Make the comments KNF-compliant. o Use nanotime instead of getnanotime; the manpage lies about the kern.timecounter.method - it has been removed. o Fix the ENTROPYSOURCE const permanently. o Make variable names more consistent. o Make function prototypes more consistent. Some more needs to be done; to follow.
Diffstat (limited to 'sys/sys/random.h')
-rw-r--r--sys/sys/random.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/sys/random.h b/sys/sys/random.h
index 4888ec5..25bc9b3 100644
--- a/sys/sys/random.h
+++ b/sys/sys/random.h
@@ -32,10 +32,9 @@
#ifdef _KERNEL
u_int read_random(char *, u_int);
-void write_random(char *, u_int);
-enum esource { RANDOM_WRITE, RANDOM_KEYBOARD, RANDOM_MOUSE };
-void random_harvest(u_int64_t, u_int, u_int, u_int);
+enum esource { RANDOM_WRITE, RANDOM_KEYBOARD, RANDOM_MOUSE, ENTROPYSOURCE };
+void random_harvest(u_int64_t, u_int, u_int, enum esource);
#endif
OpenPOWER on IntegriCloud