summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_target_linear.c
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2019-12-06 14:43:18 +0000
committerriastradh <riastradh@NetBSD.org>2019-12-06 14:43:18 +0000
commit9cdaded97eeafb02f6467379e4e49ba9b6063a78 (patch)
tree8cdaad002f1cd689c6585920ae0a4415325ae5df /sys/dev/dm/dm_target_linear.c
parent0036f4b358d892ba33d0d8c17c42e00134477a54 (diff)
Teach `rndctl -L' to update the seed file, not just delete it.
The seed file is updated by entering the old seed into the system and then hashing the old seed together with data from /dev/urandom, and writing it atomically with write-to-temporary/rename-to-permanent. This way, interruption by crash or power loss does not obliterate your persistent entropy (unless it causes file system corruption).
Diffstat (limited to 'sys/dev/dm/dm_target_linear.c')
0 files changed, 0 insertions, 0 deletions