diff options
-rw-r--r-- | net/net_rand.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/net_rand.h b/net/net_rand.h index ba9d0642cf..4bf9bd817e 100644 --- a/net/net_rand.h +++ b/net/net_rand.h @@ -16,11 +16,11 @@ */ static inline unsigned int seed_mac(void) { - unsigned char enetaddr[6]; + unsigned char enetaddr[ARP_HLEN]; unsigned int seed; /* get our mac */ - eth_getenv_enetaddr("ethaddr", enetaddr); + memcpy(enetaddr, eth_get_ethaddr(), ARP_HLEN); seed = enetaddr[5]; seed ^= enetaddr[4] << 8; |