From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Hershberger Date: Tue, 3 Sep 2019 21:44:43 +0000 Subject: [U-Boot] [PATCH v2] net: make net_random_ethaddr() more random In-Reply-To: <20190827081352.598-1-michael@walle.cc> References: <20190827081352.598-1-michael@walle.cc> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Aug 27, 2019 at 3:14 AM Michael Walle wrote: > > The net_random_ethaddr() tries to get some entropy from different > startup times of a board. The seed is initialized with get_timer() which > has only a granularity of milliseconds. We can do better if we use > get_ticks() which returns the raw timer ticks. Using this we have a > higher chance of getting different values at startup. > > Signed-off-by: Michael Walle Acked-by: Joe Hershberger