summaryrefslogtreecommitdiffstats
path: root/base/rand_util_posix.cc
diff options
context:
space:
mode:
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() {