X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fuuid.c;h=8b02bf556a5b80127084657984b0e69952f4472b;hb=73dbf4abd17b6b87fdb5bf22aec7bb3d381dce05;hp=e25902423022f20a42235619015878d895d73efd;hpb=bf9712678fc9ec85bf2ac54407e16d76aa22e7b6;p=openvswitch diff --git a/lib/uuid.c b/lib/uuid.c index e2590242..8b02bf55 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();