diff options
author | markm <markm@FreeBSD.org> | 2000-06-25 10:15:58 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2000-06-25 10:15:58 +0000 |
commit | 64f916941218d663f1c5abc10113ca81b9ad80d7 (patch) | |
tree | 8bc828b0cc341aac26b826723c6a557e66545f2f /sys/libkern | |
parent | 137a7a4f8d6d73d1863780f9601c097d78cdaa33 (diff) | |
download | FreeBSD-src-64f916941218d663f1c5abc10113ca81b9ad80d7.zip FreeBSD-src-64f916941218d663f1c5abc10113ca81b9ad80d7.tar.gz |
Comment out unavailable call. This needs to be revisited when the entropy
device is complete.
Reviewed by: dfr
Diffstat (limited to 'sys/libkern')
-rw-r--r-- | sys/libkern/arc4random.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/libkern/arc4random.c b/sys/libkern/arc4random.c index 4eefb69..9abba83 100644 --- a/sys/libkern/arc4random.c +++ b/sys/libkern/arc4random.c @@ -10,6 +10,8 @@ * $FreeBSD$ */ +#include <sys/types.h> +#include <sys/random.h> #include <sys/libkern.h> #define ARC4_MAXRUNS 64 @@ -19,8 +21,6 @@ static int arc4_initialized = 0; static int arc4_numruns = 0; static u_int8_t arc4_sbox[256]; -extern u_int read_random (void *, u_int); - static __inline void arc4_swap(u_int8_t *a, u_int8_t *b) { @@ -40,7 +40,8 @@ arc4_randomstir (void) u_int8_t key[256]; int r, n; - r = read_random(key, sizeof(key)); + /* r = read_random(key, sizeof(key)); */ + r = 0; /* XXX MarkM - revisit this when /dev/random is done */ /* if r == 0 || -1, just use what was on the stack */ if (r > 0) { |