summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2018-04-28 15:44:59 +0000
committerjasper <jasper@openbsd.org>2018-04-28 15:44:59 +0000
commit9e9abf5b6221a42175e358d6f89e45cab0865401 (patch)
tree1c307e20a20c21b9d9ad519b1682df884c132952 /sys/kern/tty.c
parentStop talking about /etc/networks, which is no longer used, (diff)
downloadwireguard-openbsd-9e9abf5b6221a42175e358d6f89e45cab0865401.tar.xz
wireguard-openbsd-9e9abf5b6221a42175e358d6f89e45cab0865401.zip
replace add_*_randomness with enqueue_randomness()
this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the few extra bits that the source type would add are not worth it. ok mikeb@ deraadt@
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 1a562b50f99..f030029cc05 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.138 2018/04/28 03:13:04 visa Exp $ */
+/* $OpenBSD: tty.c,v 1.139 2018/04/28 15:44:59 jasper Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -237,7 +237,7 @@ ttyinput(int c, struct tty *tp)
int i, error;
int s;
- add_tty_randomness(tp->t_dev << 8 | c);
+ enqueue_randomness(tp->t_dev << 8 | c);
/*
* If receiver is not enabled, drop it.
*/