random: Mix cputime from each thread that exits to the pool
authorNick Kossifidis <mickflemm@gmail.com>
Mon, 17 Dec 2012 03:18:11 +0000 (22:18 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 17 Dec 2012 03:18:11 +0000 (22:18 -0500)
commit6133705494bb02953e1e2cc3018a4373981b3c97
tree4c46ef0c3b1c6a3b07a7f98fda0873c4f201934c
parentec8f02da9ea500474417d1d31fa3d46a562ab366
random: Mix cputime from each thread that exits to the pool

When a thread exits mix it's cputime (userspace + kernelspace) to the entropy pool.

We don't know how "random" this is, so we use add_device_randomness that doesn't mess
with entropy count.

Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
kernel/posix-cpu-timers.c