Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/rndctl rndctl(8): remove no-longer-useful stats from -s
details: https://anonhg.NetBSD.org/src/rev/d7774102a08a
branches: trunk
changeset: 960969:d7774102a08a
user: nia <nia%NetBSD.org@localhost>
date: Sun Apr 04 12:50:31 2021 +0000
description:
rndctl(8): remove no-longer-useful stats from -s
these are always 0 now.
"gofer it" riastradh@
diffstat:
sbin/rndctl/rndctl.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (32 lines):
diff -r 1c20279cfd79 -r d7774102a08a sbin/rndctl/rndctl.c
--- a/sbin/rndctl/rndctl.c Sun Apr 04 11:56:43 2021 +0000
+++ b/sbin/rndctl/rndctl.c Sun Apr 04 12:50:31 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rndctl.c,v 1.38 2021/04/02 07:17:56 nia Exp $ */
+/* $NetBSD: rndctl.c,v 1.39 2021/04/04 12:50:31 nia Exp $ */
/*-
* Copyright (c) 1997 Michael Graff.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rndctl.c,v 1.38 2021/04/02 07:17:56 nia Exp $");
+__RCSID("$NetBSD: rndctl.c,v 1.39 2021/04/04 12:50:31 nia Exp $");
#endif
#include <sys/param.h>
@@ -563,13 +563,8 @@
if (ioctl(fd, RNDGETPOOLSTAT, &rs) < 0)
err(1, "ioctl(RNDGETPOOLSTAT)");
- printf("\t%9u bits mixed into pool\n", rs.added);
printf("\t%9u bits currently stored in pool (max %u)\n",
rs.curentropy, rs.maxentropy);
- printf("\t%9u bits of entropy discarded due to full pool\n",
- rs.discarded);
- printf("\t%9u hard-random bits generated\n", rs.removed);
- printf("\t%9u pseudo-random bits generated\n", rs.generated);
close(fd);
}
Home |
Main Index |
Thread Index |
Old Index