about summary refs log tree commit diff
path: root/seedrng.c
Commit message (Collapse)AuthorAgeFilesLines
* seedrng: incorporate various improvementsJason A. Donenfeld2022-04-241-73/+120
| | | | | | There have been a number of subtle improvements and cleanups to seedrng, including using openat and locking the directory fd instead of a separate lock file. Also various stylistic cleanups.
* seedrng: fix up exit path and styleJason A. Donenfeld2022-03-291-6/+8
| | | | A few days of cooking have yielded a few trivial cleanups.
* 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.