Input: feed more data into entropy pool
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 23 Jan 2016 19:29:13 +0000 (11:29 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 19 May 2016 16:35:18 +0000 (09:35 -0700)
commitb55eb298418aebc27a1a9e7759736def2757af79
tree8b88d787aa42c185717feceae25ca48f1b054ea8
parente9000b7978541f73a4bc100117fd417ab08a2a60
Input: feed more data into entropy pool

Commit 4369c64c79a22 ("Input: Send events one packet at a time")
significantly reduced amount of entropy input core was feeding to the rest
of the system, because only the very first event in the event block would
be used as source of entropy.

With this change we will be calling add_input_randomness() for every event
that is not filtered by the input core as a duplicate. In addition, all
EV_SYN events are ignored.

Acked-by: Henrik Rydberg <rydberg@bitmath.org>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c