From ea9e6cbecb74d8f6bf72bfaa86b1619b5bad41c4 Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Sat, 10 Aug 1996 21:28:21 +0000 Subject: Support entropy generation for keyboard generation; already done for PCVT --- sys/arch/i386/isa/pccons.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sys/arch/i386') diff --git a/sys/arch/i386/isa/pccons.c b/sys/arch/i386/isa/pccons.c index 27facb21d80..ed72f01815b 100644 --- a/sys/arch/i386/isa/pccons.c +++ b/sys/arch/i386/isa/pccons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pccons.c,v 1.21 1996/07/19 23:00:08 dm Exp $ */ +/* $OpenBSD: pccons.c,v 1.22 1996/08/10 21:28:20 tholo Exp $ */ /* $NetBSD: pccons.c,v 1.99.4.1 1996/06/04 20:03:53 cgd Exp $ */ /*- @@ -71,6 +71,11 @@ #include #include +#include "rnd.h" +#if NRND > 0 +#include +#endif + #define XFREE86_BUG_COMPAT #ifndef BEEP_FREQ @@ -1577,6 +1582,10 @@ top: KBD_DELAY; dt = inb(KBDATAP); +#if NRND > 0 + add_keyboard_randomness(dt); +#endif + switch (dt) { case KBR_ACK: ack = 1; -- cgit v1.2.3