RFC: initialize /dev/urandom, is it necessary? Can we do it in a better way?
Steffen Nurpmeso
steffen at sdaoden.eu
Tue Sep 19 18:54:53 UTC 2023
David Laight wrote in
<1628d46df2fb4580b474fd0ea43a5778 at AcuMS.aculab.com>:
|> Fine, then use > (write) to reset the entropy and >> (append) to \
|> add entropy.
|
|IIRC writing to /dev/urandom doesn't do what you want it to do.
|You have to use an ioctl() to actually set entropy.
And that is the sad point about it.
Kernel hackers should stand up to allow it again!
It wins nothing to only allow this, sorry, grazy lock/ioctl dance
unless you have a super-parallel boot sequence, but maybe even
then not (as the device below cares, surely it does, not looking).
On my (CRUX) distro with SysV style init everything is synchronous
during boot/shutdown, and i fail to see the improvement.
The kernel should simply agree to have entropy. (This rhymes!!)
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
More information about the busybox
mailing list