
Dear Christian Riesch,
In message 419e5c6e-b2ef-44c2-a4c1-bb25c50fcb57@mary.at.omicron.at you wrote:
Currently eth_random_enetaddr() seeds the random number generator with get_timer(0). Some boards might want to use other sources for the seed, therefore move the call of srand() to the board specific code.
Signed-off-by: Christian Riesch christian.riesch@omicron.at Cc: Michael Walle michael@walle.cc Cc: Joe Hershberger joe.hershberger@gmail.com
I don't like this change. What exactly is wrong with using the timer here? It is probably much more random that the (so-called) "un-initialized" memory you suggest to use instead.
If there is really need to use another inital valu, only this should be fixed - but the srand() call itself should remain as is.
You cannot do this.
Best regards,
Wolfgang Denk