[PATCH v2] net: phy: seed PRNG when PHY comes up and when generating MAC address
Sascha Hauer
s.hauer at pengutronix.de
Mon Jun 2 00:56:28 PDT 2025
On Wed, 28 May 2025 17:45:08 +0200, Ahmad Fatoum wrote:
> The new Xorshift* RNG is seeded only from the cycle counter at startup,
> which is much less entropy for the MAC address generation use case,
> which used the nanosecond timestamp at generation time before the switch
> to Xorshift*.
>
> The nice thing about our new PRNG implementation is that we can call
> srand_xor multiple times to keep adding entropy, so let's do that after
> each PHY link up and prior to generating the MAC address.
>
> [...]
Applied, thanks!
[1/1] net: phy: seed PRNG when PHY comes up and when generating MAC address
https://git.pengutronix.de/cgit/barebox/commit/?id=a9f987772af7 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list