X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fuuid.c;h=8b02bf556a5b80127084657984b0e69952f4472b;hb=a328a943f173391cd9a9a54e257c8dabcd463402;hp=e25902423022f20a42235619015878d895d73efd;hpb=c84933bf9a73e334207b6b309749d9e9c3b04812;p=sliver-openvswitch.git diff --git a/lib/uuid.c b/lib/uuid.c index e25902423..8b02bf556 100644 --- a/lib/uuid.c +++ b/lib/uuid.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2008, 2009, 2010 Nicira Networks +/* Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,6 +27,7 @@ #include "aes128.h" #include "entropy.h" #include "sha1.h" +#include "timeval.h" #include "util.h" static struct aes128 key; @@ -212,9 +213,7 @@ do_init(void) /* Get seed data. */ get_entropy_or_die(random_seed, sizeof random_seed); - if (gettimeofday(&now, NULL)) { - ovs_fatal(errno, "gettimeofday failed"); - } + xgettimeofday(&now); pid = getpid(); ppid = getppid(); uid = getuid();