about summary refs log tree commit diff
path: root/seedrng.c
Commit message (Collapse)AuthorAgeFilesLines
* Use seedrng for seeding the random number generatorJason A. Donenfeld2022-03-251-0/+436
The RNG can't actually be seeded from a shell script, due to the reliance on ioctls. For this reason, the seedrng project provides a basic script meant to be copy and pasted into projects like void-runit and tweaked as needed: <https://git.zx2c4.com/seedrng/about/>. This commit imports it into void-runit and wires up the init scripts to call it. This also is a significant improvement over the current init script, which fails to remove seed files that have already been used, or to ratchet them forward.