diff options
| author | Mark Murray <markm@FreeBSD.org> | 2000-06-25 10:15:58 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2000-06-25 10:15:58 +0000 |
| commit | bf3191e9fa00fe44c58cfd0484fa1cbee135f3f0 (patch) | |
| tree | 179ffc580531804648a500273513882c2877e5d2 /sys/libkern | |
| parent | b6e67f5c7db77986d3f9d31d67dc26d6ac3a067d (diff) | |
Notes
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 4eefb69107277..9abba830a925a 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) { |
