diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-10-04 19:37:53 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-10-04 19:37:53 +0000 |
commit | fe62460ed4e7176b7954fe6085d6b5d413e6867f (patch) | |
tree | f9e01552b1fdd9511505ac16126d0ef641ffe95b /sys | |
parent | ae5b5a4e1611598bca0b0b2aa968731d406caccc (diff) |
supply entropy from here
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/wscons/wsmouse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/wscons/wsmouse.c b/sys/dev/wscons/wsmouse.c index 650925a1e84..32fc129e9fb 100644 --- a/sys/dev/wscons/wsmouse.c +++ b/sys/dev/wscons/wsmouse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmouse.c,v 1.6 2001/05/08 22:28:43 mickey Exp $ */ +/* $OpenBSD: wsmouse.c,v 1.7 2001/10/04 19:37:52 mickey Exp $ */ /* $NetBSD: wsmouse.c,v 1.12 2000/05/01 07:36:58 takemura Exp $ */ /* @@ -98,6 +98,7 @@ #include <dev/wscons/wsmousevar.h> #include <dev/wscons/wseventvar.h> #include <dev/wscons/wsdisplayvar.h> +#include <dev/rndvar.h> #include "wsmouse.h" #include "wsmux.h" @@ -305,6 +306,8 @@ wsmouse_input(wsmousedev, btns, x, y, z, flags) if (sc->sc_ready == 0) return; + add_mouse_randomness(x ^ y ^ z ^ btns); + #if NWSMUX > 0 if (sc->sc_mux) evar = &sc->sc_mux->sc_events; |