aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Replace spaces with tabsHEADmasterJason A. Donenfeld2022-04-201-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Loop read/write across signalsJason A. Donenfeld2022-04-201-7/+63
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* An ioctl does not require write accessJason A. Donenfeld2022-04-101-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Use *at family of functionsJason A. Donenfeld2022-04-101-6/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Simplify error handling and lock directory fdJason A. Donenfeld2022-04-103-60/+49
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* License additionally under BSD-1-Clause and CC0-1.0Jason A. Donenfeld2022-03-293-25/+171
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Avoid closing -1 fd on exitJason A. Donenfeld2022-03-271-4/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Make clear that it's meant for importJason A. Donenfeld2022-03-261-3/+5
| | | | | | This project is best included as part of openrc/util-linux/busybox etc. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Allow skipping creditingJason A. Donenfeld2022-03-262-2/+12
| | | | | | Might be desirable in certain scenarios. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Compile with -pedanticJason A. Donenfeld2022-03-262-3/+3
| | | | | | | | I usually code with GNUisms, but given that the purpose of this project is to make it easy for people to copy and paste this code, I'll stick with a more standard C. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Send informational messages on stdoutYann E. MORIN2022-03-261-2/+2
| | | | | | | | | | Currently, the messages about saving the seed or seeding the RNG are sent to stderr, but they are informational messages we want to see when the program works as expected; only error messages should be directed to stderr. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Initial commitJason A. Donenfeld2022-03-265-0/+1086
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>