From: Michael Walle Date: Fri, 11 May 2012 23:22:23 +0200 Subject: [U-Boot] [PATCH v4 0/3] net: helper functions In-Reply-To: <20120511211425.DF39C206496@gemini.denx.de> References: <1336671134-16342-1-git-send-email-michael@walle.cc> <201205112254.13896.michael@walle.cc> <20120511211425.DF39C206496@gemini.denx.de> Message-ID: <201205112322.23891.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 Am Freitag 11 Mai 2012, 23:14:25 schrieb Wolfgang Denk: > Dear Michael Walle, > > In message <201205112254.13896.michael@walle.cc> you wrote: > > What about the rand function? I guess that should be two > > compile time options > > > > - CONFIG_RAND > > - CONFIG_RANDOM_HWADDR > > > > Any better names? > > Please make this a single option, CONFIG_RANDOM_MACADDR. It appears > nobody else ever needed a random number before, and we can still > factor this out if another user pops up after another 12 years. from net/net.c: unsigned int random_port(void) { return 1024 + (get_timer(0) % 0x4000); } CONFIG_BOOTP_RANDOM_DELAY, in net/bootp.c -- michael