X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fnet_rand.h;h=6724b3c13090380d27ffea622ed8cf83df46903e;hb=ebddc2e8fca7c1a3e05e6b0764a99fdb89638fc3;hp=ba9d0642cf231ab2ed14c162f2c7fb975f315574;hpb=d978780b2e676c005460cd561f4f15b5220bdf49;p=karo-tx-uboot.git diff --git a/net/net_rand.h b/net/net_rand.h index ba9d0642cf..6724b3c130 100644 --- a/net/net_rand.h +++ b/net/net_rand.h @@ -37,7 +37,7 @@ static inline unsigned int seed_mac(void) */ static inline void srand_mac(void) { - srand(seed_mac()); + srand(rand() ^ seed_mac()); } #endif /* __NET_RAND_H__ */