Re: [U-Boot] [PATCH v2] net: make net_random_ethaddr() more random

2019-09-03 Thread Joe Hershberger
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

Re: [U-Boot] [PATCH v2] net: make net_random_ethaddr() more random

2019-08-27 Thread Bin Meng
On Tue, Aug 27, 2019 at 4:14 PM 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

[U-Boot] [PATCH v2] net: make net_random_ethaddr() more random

2019-08-27 Thread Michael Walle
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