aboutsummaryrefslogtreecommitdiffstats
path: root/seedrng.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-04-20Replace spaces with tabsHEADmasterJason A. Donenfeld1-3/+3
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-04-20Loop read/write across signalsJason A. Donenfeld1-7/+63
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-04-10An ioctl does not require write accessJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-04-10Use *at family of functionsJason A. Donenfeld1-6/+6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-04-10Simplify error handling and lock directory fdJason A. Donenfeld3-60/+49
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-03-29License additionally under BSD-1-Clause and CC0-1.0Jason A. Donenfeld3-25/+171
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-03-27Avoid closing -1 fd on exitJason A. Donenfeld1-4/+7
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-03-26Make clear that it's meant for importJason A. Donenfeld1-3/+5
This project is best included as part of openrc/util-linux/busybox etc. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-03-26Allow skipping creditingJason A. Donenfeld2-2/+12
Might be desirable in certain scenarios. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-03-26Compile with -pedanticJason A. Donenfeld2-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>
2022-03-26Send informational messages on stdoutYann E. MORIN1-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>