- Aug 07, 2017
-
-
Jimmy Du authored
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>
-
- Jul 07, 2012
-
-
Michael Walle authored
Replace rand() with the functions from lib/. The link-local network code stores its own seed, derived from the MAC address. Thus making it independent from calls to srand() in other modules. Signed-off-by:
Michael Walle <michael@walle.cc> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
- May 23, 2012
-
-
Joe Hershberger authored
Make the MAC-seeded random number generator available to /net in general. MAC-seeded rand will be needed by link-local as well, so give it an interface. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Acked-by:
Simon Glass <sjg@chromium.org>
-