From: Ian Jackson Date: Sat, 7 Aug 2021 11:14:07 +0000 (+0100) Subject: Add 'uml/rndaddtoentcnt/' from commit '3cef9b224336ac4147aade20738420193e525fc5' X-Git-Tag: hippotat/1.0.0~303 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=1036bee2d05d60537f6c05679d9920942e79b957;p=hippotat.git Add 'uml/rndaddtoentcnt/' from commit '3cef9b224336ac4147aade20738420193e525fc5' git-subtree-dir: uml/rndaddtoentcnt git-subtree-mainline: 488191f4770edfd9990ab847b061e4227f79a091 git-subtree-split: 3cef9b224336ac4147aade20738420193e525fc5 --- 1036bee2d05d60537f6c05679d9920942e79b957 diff --cc uml/rndaddtoentcnt/.gitignore index 0000000,0000000..a997b67 new file mode 100644 --- /dev/null +++ b/uml/rndaddtoentcnt/.gitignore @@@ -1,0 -1,0 +1,1 @@@ ++rndaddtoentcnt diff --cc uml/rndaddtoentcnt/LICENSE index 0000000,4479b29..4479b29 mode 000000,100644..100644 --- a/uml/rndaddtoentcnt/LICENSE +++ b/uml/rndaddtoentcnt/LICENSE diff --cc uml/rndaddtoentcnt/Makefile index 0000000,0000000..7b3c881 new file mode 100644 --- /dev/null +++ b/uml/rndaddtoentcnt/Makefile @@@ -1,0 -1,0 +1,6 @@@ ++rndaddtoentcnt: rndaddtoentcnt.c ++ $(CC) rndaddtoentcnt.c -o rndaddtoentcnt ++ ++.PHONY: clean ++clean: ++ rm -f *.o rndaddtoentcnt diff --cc uml/rndaddtoentcnt/README.md index 0000000,0000000..9f85b29 new file mode 100644 --- /dev/null +++ b/uml/rndaddtoentcnt/README.md @@@ -1,0 -1,0 +1,15 @@@ ++### rndaddtoentcnt ++ ++Seeding the random number generator by writing to /dev/urandom does not update the entropy count. ++ ++This utility makes the RNDADDTOENTCNT ioctl call needed to do this. ++ ++Used in startup scripts after initializing /dev/urandom with a presaved seed. ++ ++Example: ++ ++ dd if=/path/to/some/random-seed-file of=/dev/urandom bs=512 count=1 ++ ++ /path/to/rdnaddtoentcnt ++ ++where entropy-bit-count is a number between 1 and (8 * 512) depending on how much you trust the seed file. diff --cc uml/rndaddtoentcnt/rndaddtoentcnt.c index 0000000,929bf4d..929bf4d mode 000000,100644..100644 --- a/uml/rndaddtoentcnt/rndaddtoentcnt.c +++ b/uml/rndaddtoentcnt/rndaddtoentcnt.c