When I'm doing watch cat /proc/sys/kernel/random/entropy_avail
, the amount of entropy steadily decreases, until I get about 150-200. Initially I get over 2000. When I stop reading that value and wait a minute or two, and then read it again, I am at about 2000 again. Why is reading that value reducing the entropy?
Linux – Is reading from /proc/sys/kernel/random/entropy_avail draining entropy
linuxrandom number generator
Best Answer
Main point here is that creating a process will consume some amount of entropy.
As stated in comments in the blog post Entropy Broken entropy is needed at least for randomization of the address space layout.
cat
is a process, thus runningwatch cat ...
will be consuming entropy constantly. Obviously, when you killwatch
your system is restoring entropy to the usual level.