summaryrefslogtreecommitdiffstats
path: root/base/rand_util_posix.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-01 19:52:56 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-01 19:52:56 +0000
commita1e16e05fb365ad8d29ad6ed95e46bacdaaf83fb (patch)
treed0c960c21c0f7d0bb8f8333a23d9babc91623a03 /base/rand_util_posix.cc
parentecd9aa34054396f135981f369105af51dec02793 (diff)
downloadchromium_src-a1e16e05fb365ad8d29ad6ed95e46bacdaaf83fb.zip
chromium_src-a1e16e05fb365ad8d29ad6ed95e46bacdaaf83fb.tar.gz
chromium_src-a1e16e05fb365ad8d29ad6ed95e46bacdaaf83fb.tar.bz2
Add support for CHECK_* macros.
Convert a few places to make sure it works. Review URL: http://codereview.chromium.org/660221 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/rand_util_posix.cc')
-rw-r--r--base/rand_util_posix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/rand_util_posix.cc b/base/rand_util_posix.cc
index a2bdeb8..c65551d 100644
--- a/base/rand_util_posix.cc
+++ b/base/rand_util_posix.cc
@@ -22,7 +22,7 @@ class URandomFd {
public:
URandomFd() {
fd_ = open("/dev/urandom", O_RDONLY);
- CHECK(fd_ >= 0) << "Cannot open /dev/urandom: " << errno;
+ CHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno;
}
~URandomFd() {