From: mickey Date: Mon, 10 Apr 2000 19:49:14 +0000 (+0000) Subject: make .mpg playing more usefull, i.e. supply entropy X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4d560ff44eab2d77cf62f853615a283509eda0c3;p=openbsd make .mpg playing more usefull, i.e. supply entropy --- 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 #include +#include + #include #include @@ -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;