diff options
author | markm <markm@FreeBSD.org> | 2000-07-16 09:25:04 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2000-07-16 09:25:04 +0000 |
commit | e58a1e7975d35724334ee72b93c6a5fe7fd7f166 (patch) | |
tree | f5700072914487e7db76cca62bb4ff4eef3a3077 /sys/dev/syscons | |
parent | 1c12e42639333b4b2fc0ed65e4083c79e1240791 (diff) | |
download | FreeBSD-src-e58a1e7975d35724334ee72b93c6a5fe7fd7f166.zip FreeBSD-src-e58a1e7975d35724334ee72b93c6a5fe7fd7f166.tar.gz |
Don't break the ability to debug the kernel when gathering entropy.
Pointed out by: bde
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r-- | sys/dev/syscons/syscons.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 1c60164..cbcace8 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -2957,7 +2957,8 @@ next_code: sc_touch_scrn_saver(); /* do the /dev/random device a favour */ - random_harvest((u_int64_t)c, 1, 0, RANDOM_KEYBOARD); + if (!(flags & SCGETC_CN)) + random_harvest((u_int64_t)c, 1, 0, RANDOM_KEYBOARD); if (scp->kbd_mode != K_XLATE) return KEYCHAR(c); |