X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fgen_eth_addr.c;h=5fa3e0cf5651b8595591c837ee518185e93b9290;hb=a2c08df3813b6b1ab6fd016a9f5b264c634e6813;hp=bf9d935efdca205328de190f911d70c6ac594df2;hpb=3be2bdf5dc69b3142c1162a59bc67191c9077567;p=oweals%2Fu-boot.git diff --git a/tools/gen_eth_addr.c b/tools/gen_eth_addr.c index bf9d935efd..5fa3e0cf56 100644 --- a/tools/gen_eth_addr.c +++ b/tools/gen_eth_addr.c @@ -15,7 +15,7 @@ main(int argc, char *argv[]) { unsigned long ethaddr_low, ethaddr_high; - srand(time(0) | getpid()); + srand(time(0) + (getpid() << 8)); /* * setting the 2nd LSB in the most significant byte of