net: use common rand()/srand() functions
authorMichael Walle <michael@walle.cc>
Tue, 5 Jun 2012 11:33:15 +0000 (11:33 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:32 +0000 (14:07 +0200)
commit99e139d5902e488eb779cd4f00c978f3803c39be
tree44a0e2420003a2c3393b845b091bcc7b2e05a93b
parent9acf1ca50d8b031511d146f6ffd73201fedce28c
net: use common rand()/srand() functions

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>
include/common.h
lib/Makefile
net/Makefile
net/link_local.c
net/net_rand.c [deleted file]
net/net_rand.h