diff options
author | markm <markm@FreeBSD.org> | 1995-10-28 16:58:05 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1995-10-28 16:58:05 +0000 |
commit | 0336663acb5f8898f1b6458acfd4c70817c0718c (patch) | |
tree | bed4ea6a610ec2669b364d66cd69fe10ce0feb9c /sys/dev/syscons/syscons.c | |
parent | 63bc51f9191b9bad22a3d2a6a3ef84a091389395 (diff) | |
download | FreeBSD-src-0336663acb5f8898f1b6458acfd4c70817c0718c.zip FreeBSD-src-0336663acb5f8898f1b6458acfd4c70817c0718c.tar.gz |
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
Diffstat (limited to 'sys/dev/syscons/syscons.c')
-rw-r--r-- | sys/dev/syscons/syscons.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <machine/frame.h> #include <machine/pc/display.h> #include <machine/apm_bios.h> +#include <machine/random.h> #include <i386/isa/isa.h> #include <i386/isa/isa_device.h> @@ -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 |