ti: AM335x: Use generic EEPROM detection logic
[platform/kernel/u-boot.git] / tools / gen_eth_addr.c
index bf9d935..5fa3e0c 100644 (file)
@@ -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