summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-07-16 09:25:04 +0000
committermarkm <markm@FreeBSD.org>2000-07-16 09:25:04 +0000
commite58a1e7975d35724334ee72b93c6a5fe7fd7f166 (patch)
treef5700072914487e7db76cca62bb4ff4eef3a3077 /sys/dev/syscons
parent1c12e42639333b4b2fc0ed65e4083c79e1240791 (diff)
downloadFreeBSD-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.c3
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);
OpenPOWER on IntegriCloud