Don't break the ability to debug the kernel when gathering entropy.

Pointed out by:	bde
This commit is contained in:
Mark Murray 2000-07-16 09:25:04 +00:00
parent c5dfaf05b1
commit 7d4e8b5df8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63264

View File

@ -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);