Comment out unavailable call. This needs to be revisited when the entropy
device is complete. Reviewed by: dfr
This commit is contained in:
parent
b6e67f5c7d
commit
bf3191e9fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62072
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user