diff --git a/sys/i386/isa/random_machdep.c b/sys/i386/isa/random_machdep.c index 361658584fcb..c62db1381321 100644 --- a/sys/i386/isa/random_machdep.c +++ b/sys/i386/isa/random_machdep.c @@ -1,7 +1,7 @@ /* * random.c -- A strong random number generator * - * $Id$ + * $Id: random_machdep.c,v 1.2 1995/12/27 11:22:01 markm Exp $ * * Version 0.95, last modified 18-Oct-95 * @@ -49,6 +49,7 @@ #include #include #include +#include #include /* @@ -191,7 +192,7 @@ add_timer_randomness(struct random_bucket *r, struct timer_rand_state *state, } else { #endif - outb(TIMER_LATCH|TIMER_SEL0, TIMER_MODE); /* latch ASAP */ + outb(TIMER_MODE, TIMER_LATCH|TIMER_SEL0); /* latch ASAP */ num ^= inb(TIMER_CNTR0) << 16; num ^= inb(TIMER_CNTR0) << 24; r->entropy_count += 2; diff --git a/sys/kern/kern_random.c b/sys/kern/kern_random.c index 361658584fcb..c62db1381321 100644 --- a/sys/kern/kern_random.c +++ b/sys/kern/kern_random.c @@ -1,7 +1,7 @@ /* * random.c -- A strong random number generator * - * $Id$ + * $Id: random_machdep.c,v 1.2 1995/12/27 11:22:01 markm Exp $ * * Version 0.95, last modified 18-Oct-95 * @@ -49,6 +49,7 @@ #include #include #include +#include #include /* @@ -191,7 +192,7 @@ add_timer_randomness(struct random_bucket *r, struct timer_rand_state *state, } else { #endif - outb(TIMER_LATCH|TIMER_SEL0, TIMER_MODE); /* latch ASAP */ + outb(TIMER_MODE, TIMER_LATCH|TIMER_SEL0); /* latch ASAP */ num ^= inb(TIMER_CNTR0) << 16; num ^= inb(TIMER_CNTR0) << 24; r->entropy_count += 2;