]> git.baikalelectronics.ru Git - uboot.git/commit
net: Get mac address from driver as seed
authorJimmy Du <jimmy.du@ni.com>
Tue, 6 Jun 2017 16:58:54 +0000 (11:58 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 7 Aug 2017 20:18:28 +0000 (15:18 -0500)
commit097dba3170b7f52122cc44d88c6941b0708eab90
treef0469af07c90e4830a28f70f14e81c323856ab2b
parentbb753588491d7dbb9d532663bf990f600caf11f4
net: Get mac address from driver as seed

Previously seeded by obtaining mac addr from env. If mac addr was
never set, rand would output 0. This fix obtains the mac addr
from driver instead.

Signed-off-by: Jimmy Du <jimmy.du@ni.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/net_rand.h