diff options
| author | riastradh <riastradh@NetBSD.org> | 2015-04-13 23:24:33 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2015-04-13 23:24:33 +0000 |
| commit | 446f1438d7675c846ca2ec5bddd0e7ecfb642cfb (patch) | |
| tree | 77e8c6633e6829543feaded19b0e8ee6840023ca /sys | |
| parent | 0d5f0b9264e62c724d95d31f09dc680ac6cbdce4 (diff) | |
Cull another unused rndpool routine.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_rndpool.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/kern/kern_rndpool.c b/sys/kern/kern_rndpool.c index 23b6d26c83e..80addcc0159 100644 --- a/sys/kern/kern_rndpool.c +++ b/sys/kern/kern_rndpool.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_rndpool.c,v 1.10 2015/04/13 23:21:03 riastradh Exp $ */ +/* $NetBSD: kern_rndpool.c,v 1.11 2015/04/13 23:24:33 riastradh Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_rndpool.c,v 1.10 2015/04/13 23:21:03 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_rndpool.c,v 1.11 2015/04/13 23:24:33 riastradh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -97,18 +97,6 @@ void rndpool_get_stats(rndpool_t *rp, void *rsp, int size) memcpy(rsp, &rp->stats, size); } -static void __used /* XXX soon */ -rndpool_increment_entropy_count(rndpool_t *rp, u_int32_t entropy) -{ - - rp->stats.curentropy += entropy; - rp->stats.added += entropy; - if (rp->stats.curentropy > RND_POOLBITS) { - rp->stats.discarded += (rp->stats.curentropy - RND_POOLBITS); - rp->stats.curentropy = RND_POOLBITS; - } -} - /* * The input function treats the contents of the pool as an array of * 32 LFSR's of length RND_POOLWORDS, one per bit-plane. The LFSR's |
