From 0336663acb5f8898f1b6458acfd4c70817c0718c Mon Sep 17 00:00:00 2001 From: markm Date: Sat, 28 Oct 1995 16:58:05 +0000 Subject: Theodore Ts'po's random number gernerator for Linux, ported by me. This code will only be included in your kernel if you have 'options DEVRANDOM', but that will fall away in a couple of days. Obtained from: Theodore Ts'o, Linux --- sys/dev/syscons/syscons.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/dev/syscons/syscons.c') diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 327e329..6080597 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.125 1995/09/10 21:35:12 bde Exp $ + * $Id: syscons.c,v 1.126 1995/10/14 07:08:09 bde Exp $ */ #include "sc.h" @@ -53,6 +53,7 @@ #include #include #include +#include #include #include @@ -2202,6 +2203,10 @@ next_code: else goto next_code; +#ifdef DEVRANDOM + add_keyboard_randomness(scancode); +#endif + if (cur_console->status & KBD_RAW_MODE) return scancode; #if ASYNCH -- cgit v1.1