~james-page/ubuntu/precise/openvswitch/1.4.6-sru

« back to all changes in this revision

Viewing changes to lib/uuid.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-06-15 12:01:42 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110615120142-79xa418aat1a9cc8
Tags: 1.1.1-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/rules, debian/contro, debian/dkms.conf.in,
    debian/openvswitch-datapath.dkms.(postinst, prerm):
    Add dkms support by providindg openvswitch-datapath-dkms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2008, 2009, 2010 Nicira Networks
 
1
/* Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks
2
2
 *
3
3
 * Licensed under the Apache License, Version 2.0 (the "License");
4
4
 * you may not use this file except in compliance with the License.
27
27
#include "aes128.h"
28
28
#include "entropy.h"
29
29
#include "sha1.h"
 
30
#include "timeval.h"
30
31
#include "util.h"
31
32
 
32
33
static struct aes128 key;
212
213
 
213
214
    /* Get seed data. */
214
215
    get_entropy_or_die(random_seed, sizeof random_seed);
215
 
    if (gettimeofday(&now, NULL)) {
216
 
        ovs_fatal(errno, "gettimeofday failed");
217
 
    }
 
216
    xgettimeofday(&now);
218
217
    pid = getpid();
219
218
    ppid = getppid();
220
219
    uid = getuid();