Skip to content
Update entropy count in kernel
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
Makefile
README.md
rndaddtoentcnt.c

README.md

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 <entropy-bit-count>

where entropy-bit-count is a number between 1 and (8 * 512) depending on how much you trust the seed file.

You can’t perform that action at this time.