]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - net/eth.c
arm: mx5: clock: add support for changing CPU clock via cmdline
[karo-tx-uboot.git] / net / eth.c
index 321d5b18fd842d3d5df52549b2647ab8fb9ef816..77ea5580aa00f36726b0e8dcf7ee01be685f43b3 100644 (file)
--- a/net/eth.c
+++ b/net/eth.c
@@ -2,23 +2,7 @@
  * (C) Copyright 2001-2010
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -84,7 +68,7 @@ void eth_random_enetaddr(uchar *enetaddr)
 {
        uint32_t rval;
 
-       srand(get_timer(0));
+       srand(rand() ^ get_timer(0));
 
        rval = rand();
        enetaddr[0] = rval & 0xff;