net: Use NDRNG device in srand_mac()
authorMatthias Brugger <mbrugger@suse.com>
Fri, 18 Dec 2020 09:28:04 +0000 (10:28 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 19 Jan 2021 14:15:02 +0000 (09:15 -0500)
commitea707dc0aaafad34bba436b206af340c410dfb1b
tree9260ffa43ebee1bc9ddae35aa15b9b46728532f0
parent92fdad28cfdf078fe34c198ef430933e7b2825a1
net: Use NDRNG device in srand_mac()

When calling srand_mac we use a weak seed dependent on the
mac address. If present, use a RNG device instead to incerase entropy.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Reviewed-by: Torsten Duwe <duwe@suse.de>
net/net_rand.h