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)
commitb044cc1dee8f8af4dcad6ca2ef3ff4f577b79229
treef0469af07c90e4830a28f70f14e81c323856ab2b
parent8f0b169382734d0f1f7bf89ec1e686e51a75cd67
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