move context struct to a header for the benefit of fstat.
This commit is contained in:
parent
9d9e15ed7b
commit
3f97768e4e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rndpseudo.c,v 1.10 2012/05/19 16:00:41 tls Exp $ */
|
||||
/* $NetBSD: rndpseudo.c,v 1.11 2012/11/25 15:29:24 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.10 2012/05/19 16:00:41 tls Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.11 2012/11/25 15:29:24 christos Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
@ -101,16 +101,6 @@ static pool_cache_t rp_cpc;
|
||||
*/
|
||||
cprng_strong_t **rp_cpurngs;
|
||||
|
||||
/*
|
||||
* A context. cprng plus a smidge.
|
||||
*/
|
||||
typedef struct {
|
||||
cprng_strong_t *cprng;
|
||||
int hard;
|
||||
int bytesonkey;
|
||||
kmutex_t interlock;
|
||||
} rp_ctx_t;
|
||||
|
||||
/*
|
||||
* Our random pool. This is defined here rather than using the general
|
||||
* purpose one defined in rndpool.c.
|
||||
|
Loading…
Reference in New Issue
Block a user