[PATCH] uml: use get_random_bytes() after random pool is seeded

When the UML network driver generates random MACs for its devices, it was
possible for a number of UMLs to get the same MACs because the ethernet
initialization was done before the random pool was properly seeded.

This patch moves the initialization later so that it gets better randomness.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Jeff Dike
2006-12-06 20:34:55 -08:00
committed by Linus Torvalds
parent e46962fdd2
commit 8210fd2a9f
7 changed files with 7 additions and 7 deletions

View File

@ -90,4 +90,4 @@ static int register_tuntap(void)
return 0;
}
__initcall(register_tuntap);
late_initcall(register_tuntap);