[PATCH] uml: don't roll my own random MAC generator
Use the existing random_ether_addr() instead of cooking up my own version. Pointed out by Dave Hollis and Jason Lunz. Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
3b89af765c
commit
fade5d5461
@@ -310,9 +310,7 @@ static void setup_etheraddr(char *str, unsigned char *addr)
|
||||
return;
|
||||
|
||||
random:
|
||||
addr[0] = 0xfe;
|
||||
addr[1] = 0xfd;
|
||||
random_mac(addr);
|
||||
random_ether_addr(addr)
|
||||
}
|
||||
|
||||
static DEFINE_SPINLOCK(devices_lock);
|
||||
|
Reference in New Issue
Block a user