]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69ba37f723a62136e4b05d6c56145f85f457ffa8
tree4c46ef0c3b1c6a3b07a7f98fda0873c4f201934c
parent1b7348f54873cc7423183e7ad4e6573018e44b10
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