I work with virtual machines a lot, and they seem to generally be low on entropy (no mouse or other entropy-generating inputs). A bug with my software has surfaced, and I think it's due to running out of entropy. I want to test it, but it only happens occasionally, and is hard to reproduce.
How can I empty out the entropy pool to test how my software behaves when it has run out?
(Note: I'm calling someone else's code that uses dev/random
, so using dev/urandom
instead to prevent blocking isn't an option.)
/drivers/char/random.c:275
so you have to recompile the kernel to change it. – Navin Jan 28 '16 at 11:24