summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1996-04-24 21:26:36 +0000
committermickey <mickey@openbsd.org>1996-04-24 21:26:36 +0000
commitebee8631d978652df62ed35355e58e297d646eae (patch)
treeeeed7e80b252e88dddef0274cbebf89e92bad06a /sys/kern/tty.c
parentThis is no longer donatate data for rnd device. (diff)
downloadwireguard-openbsd-ebee8631d978652df62ed35355e58e297d646eae.tar.xz
wireguard-openbsd-ebee8631d978652df62ed35355e58e297d646eae.zip
Supply randomness source for the rnd device.
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 5b1d770befb..021f4774291 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.4 1996/04/21 22:27:28 deraadt Exp $ */
+/* $OpenBSD: tty.c,v 1.5 1996/04/24 21:26:36 mickey Exp $ */
/* $NetBSD: tty.c,v 1.68 1996/03/29 01:55:12 christos Exp $ */
/*-
@@ -61,6 +61,11 @@
#include <vm/vm.h>
+#include "rnd.h"
+#if NRND
+#include <dev/rndvar.h>
+#endif
+
static int ttnread __P((struct tty *));
static void ttyblock __P((struct tty *));
static void ttyecho __P((int, struct tty *));
@@ -225,6 +230,9 @@ ttyinput(c, tp)
register u_char *cc;
int i, error;
+#if NRND
+ add_tty_randomness(tp->t_dev, c);
+#endif
/*
* If input is pending take it first.
*/