random32: add prandom_seed_full_state helper
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 7 Oct 2015 23:20:37 +0000 (01:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Oct 2015 12:26:37 +0000 (05:26 -0700)
commit0dd50d1b0c003ab4f17597fe1198bb57a2fadc06
treee60fd71c1309bbad3c3d213555731b47b9967741
parentc90aeb948222a7b3d3391d232ec4f50fd8322ad3
random32: add prandom_seed_full_state helper

Factor out the full reseed handling code that populates the state
through get_random_bytes() and runs prandom_warmup(). The resulting
prandom_seed_full_state() will be used later on in more than the
current __prandom_reseed() user. Fix also two minor whitespace
issues along the way.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/random32.c