mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Don't break the ability to debug the kernel when gathering entropy.
Pointed out by: bde
This commit is contained in:
parent
c5dfaf05b1
commit
7d4e8b5df8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63264
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user