aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/xl.c
diff options
context:
space:
mode:
authorGianni Tedesco <gianni.tedesco@citrix.com>2010-09-02 18:12:14 +0100
committerGianni Tedesco <gianni.tedesco@citrix.com>2010-09-02 18:12:14 +0100
commit785684b4fddbd683763530a974ac822a01522794 (patch)
treee83410c7e87f9b4329d5c79acfbe1a82c7b0884a /tools/libxl/xl.c
parent7497632508eb0574bccb5418339ceb38131dae2f (diff)
downloadxen-785684b4fddbd683763530a974ac822a01522794.tar.gz
xen-785684b4fddbd683763530a974ac822a01522794.tar.bz2
xen-785684b4fddbd683763530a974ac822a01522794.zip
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 <gianni.tedesco@citrix.com> Acked-By: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl.c')
-rw-r--r--tools/libxl/xl.c2
1 files changed, 0 insertions, 2 deletions
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);