~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to lib/entropy.c

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc.
 
1
/* Copyright (c) 2008, 2009, 2010, 2011, 2013 Nicira, Inc.
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.
39
39
 
40
40
    fd = open(urandom, O_RDONLY);
41
41
    if (fd < 0) {
42
 
        VLOG_ERR("%s: open failed (%s)", urandom, strerror(errno));
 
42
        VLOG_ERR("%s: open failed (%s)", urandom, ovs_strerror(errno));
43
43
        return errno ? errno : EINVAL;
44
44
    }
45
45