RFC: initialize /dev/urandom, is it necessary? Can we do it in a better way?

Didier Kryn kryn at in2p3.fr
Wed Sep 20 16:30:39 UTC 2023


Le 20/09/2023 à 07:51, Roberto A. Foglietta a écrit :
> The reason because it exists the ioctl() is well explained here
>
> https://stackoverflow.com/questions/17118705/using-rndaddentropy-to-add-entropy-to-dev-random
>
> which refers to the man page
>
> https://man7.org/linux/man-pages/man4/random.4.html

     Beware: I may have misunderstood something but the last reference 
must be outdated since it recommends to save the seed under /var/run ... 
In Debian/Devuan, /var/run points to /run which is mounted on tmpfs and 
therefore vanishes on shutdown. Better store the seed under /var/lib.

     It is the rationale of everything /run to be lost on reboot.

     /var/lib is not so well defined; it contains stuff which must be 
preserved (eg hardware clock frequency adjustment) and things which 
don't need (eg file locks).

--     Didier



More information about the busybox mailing list