From 785684b4fddbd683763530a974ac822a01522794 Mon Sep 17 00:00:00 2001 From: Gianni Tedesco Date: Thu, 2 Sep 2010 18:12:14 +0100 Subject: xl: randomly generate UUIDs This patch converts xl to randomly generate UUID's rather than using a dodgy time-seeded PRNG. I have ignored various suggestions so far on auto-generation of MAC addresses and left it as a topic for a future patch to solve. In other words the behaviour stays the same it's just using a true random source. This patch also implements the "uuid" config file parameter in xl. Signed-off-by: Gianni Tedesco Acked-By: Christoph Egger Signed-off-by: Ian Jackson --- tools/libxl/xl.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'tools/libxl/xl.c') diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index 29694e133c..c96c2c79c0 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -74,8 +74,6 @@ int main(int argc, char **argv) argc -= optind; optind = 1; - srand(time(0)); - cspec = cmdtable_lookup(cmd); if (cspec) ret = cspec->cmd_impl(argc, argv); -- cgit v1.2.3