[OpenWrt-Devel] [PATCH 3/4] base-files: move urandom seed bits into separate package

Petr Štetiar ynezz at true.cz
Tue May 28 01:46:05 PDT 2019


Stephan Mueller <smueller at chronox.de> [2019-05-28 08:34:08]:

Hi,

[...]

> > +start_service() {
> > +    procd_open_instance "urandom_seed"
> > +    procd_set_param command "/sbin/urandom_seed"
> > +    procd_set_param stdout 1
> > +    procd_set_param stderr 1
> > +    procd_close_instance
> 
> Just as a recommendation: what about the script is invoked, say, once every 
> hour or so?

unfortunately this is not an option, as currently most of the supported
devices use SPI NOR flash for the persistent storage and those flash devices
impose certain technological limits, like for example maximum number of erase
cycles for each sector of flash memory which could be around 100000 erase
cycles under certain conditions, so it might be less. That's the reason why we
don't even try to update this seed file during every boot.

-- ynezz



More information about the openwrt-devel mailing list