tools: image-host.c: use correct output format
[oweals/u-boot.git] / tools / gen_eth_addr.c
index bf9d935efdca205328de190f911d70c6ac594df2..ad36f3f0c21d2f17d862b07a2928b0849463a331 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2001
  * Murray Jensen <Murray.Jensen@cmst.csiro.au>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <stdio.h>
@@ -15,7 +14,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