From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Walle Date: Sun, 8 Jul 2012 22:36:18 +0200 Subject: [U-Boot] [PATCH v9 2/4] net: use common rand()/srand() functions In-Reply-To: <20120708203136.A11B920012A@gemini.denx.de> References: <1338931997-13419-1-git-send-email-michael@walle.cc> <1338931997-13419-3-git-send-email-michael@walle.cc> <20120708203136.A11B920012A@gemini.denx.de> Message-ID: <201207082236.18040.michael@walle.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang, Am Sonntag 08 Juli 2012, 22:31:36 schrieben Sie: > Dear Michael, > > In message <1338931997-13419-3-git-send-email- michael@walle.cc> you wrote: > > 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 > > Acked-by: Joe Hershberger > > --- > > > > include/common.h | 4 ++- > > lib/Makefile | 4 ++- > > net/Makefile | 2 - > > net/link_local.c | 7 +++-- > > net/net_rand.c | 68 > > ------------------------------------------------------ net/net_rand.h > > | 31 +++++++++++++++++++----- > > 6 files changed, 34 insertions(+), 82 deletions(-) > > delete mode 100644 net/net_rand.c > > This commit causes build warnings like these for a zillion of boards: > > net_rand.h:40:2: warning: implicit declaration of function 'srand' > [-Wimplicit-function-declaration] Kim Philipps already posted a patch for this, see here: http://patchwork.ozlabs.org/patch/169295/ and here: http://lists.denx.de/pipermail/u-boot/2012- July/127745.html -- Michael