summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-04-10 19:49:15 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-04-10 19:49:15 +0000
commit9c98bbe9b35a7074aa429ee442760efc614831b4 (patch)
tree983fde808549288b4757373b044fa91eed1797c6 /sys/dev
parent0c3ffbaecb406268b7dcf959a35642dd258ad2c4 (diff)
make .mpg playing more usefull, i.e. supply entropy
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/audio.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index 70ea6d8949c..18db7eb464c 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio.c,v 1.20 2000/01/03 19:38:12 fgsch Exp $ */
+/* $OpenBSD: audio.c,v 1.21 2000/04/10 19:49:14 mickey Exp $ */
/* $NetBSD: audio.c,v 1.105 1998/09/27 16:43:56 christos Exp $ */
/*
@@ -83,6 +83,8 @@
#include <dev/audio_if.h>
#include <dev/audiovar.h>
+#include <dev/rndvar.h>
+
#include <vm/vm.h>
#include <vm/vm_prot.h>
@@ -1814,6 +1816,8 @@ audio_pint(v)
blksize = cb->blksize;
+ add_audio_randomness(cb);
+
cb->outp += blksize;
if (cb->outp >= cb->end)
cb->outp = cb->start;
@@ -1935,6 +1939,8 @@ audio_rint(v)
if (!sc->sc_open)
return; /* ignore interrupt if not open */
+ add_audio_randomness(cb);
+
blksize = cb->blksize;
cb->inp += blksize;