aboutsummaryrefslogtreecommitdiffstats
path: root/seedrng.c (follow)
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-101-57/+48
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* License additionally under BSD-1-Clause and CC0-1.0Jason A. Donenfeld2022-03-291-1/+1
| | | | 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>
* Allow skipping creditingJason A. Donenfeld2022-03-261-1/+8
| | | | | | Might be desirable in certain scenarios. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Compile with -pedanticJason A. Donenfeld2022-03-261-2/+2
| | | | | | | | 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-261-0/+431
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>