From bf3191e9fa00fe44c58cfd0484fa1cbee135f3f0 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Sun, 25 Jun 2000 10:15:58 +0000 Subject: [PATCH] Comment out unavailable call. This needs to be revisited when the entropy device is complete. Reviewed by: dfr --- sys/libkern/arc4random.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/libkern/arc4random.c b/sys/libkern/arc4random.c index 4eefb691072..9abba830a92 100644 --- a/sys/libkern/arc4random.c +++ b/sys/libkern/arc4random.c @@ -10,6 +10,8 @@ * $FreeBSD$ */ +#include +#include #include #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) {