was mentioned in Linux Random Number Generation (RNG) Innerworkings and Early Boot Seeding by HulaHoop
Looking into it.
- Has signed git commits.
- python2 but maybe could be ported to python3.
- Debian packaging looks very doable.
- Causes ~15% CPU on my system. Therefore probably no good idea to run it permanently. But there might be no need for that.
- stdout contains progress info. Could be discarded to /dev/null.
- stderr contains entropy. Could be redirected to /dev/random.
time twuewand --bytes 100 takes ~ 6 seconds.
I could write a wrapper. Read XX random amount of bytes. Redirect that entropy to /dev/random. Run that at early boot.
How many random bytes would be worth reading? It should be based on some number considered useful for the kernel. Too many would needlessly slow down the boot.
/var/lib/systemd/random-seed is 512 bytes.
twuewand --bytes 512 1>/dev/random 2>/dev/null
Takes ~ 25 seconds. Quite a long time during boot.
twuewand could alternatively/either/or be used to re-seed. CPU could be limited using cpulimit or so. Reseeding is much less critical, kinda optional and can be slow so this doesn’t stress the CPU.