]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/gen_eth_addr.c
merged tx6dl-devel into denx master branch
[karo-tx-uboot.git] / tools / gen_eth_addr.c
index bf9d935efdca205328de190f911d70c6ac594df2..937ed35401a6a2a2451244ed960296075541fc5a 100644 (file)
@@ -15,7 +15,7 @@ main(int argc, char *argv[])
 {
     unsigned long ethaddr_low, ethaddr_high;
 
-    srand(time(0) | getpid());
+    srand(rand() ^ time(0) ^ getpid());
 
     /*
      * setting the 2nd LSB in the most significant byte of