8 unsigned int get_mac_addr()
14 strcpy(wan_mac_str
, nvram_safe_get("wan_hwaddr"));
27 //memcpy((char *)ret, &wan_mac_str[2], 4);
28 ret
= atoi(&wan_mac_str
[6]);
38 gettimeofday(&t
, NULL
);
39 //seed = get_mac_addr() ^ t.tv_sec ^ t.tv_usec ^ getpid();
40 seed
= t
.tv_sec
^ t
.tv_usec
^ getpid();