Index: base/rand_util_posix.cc |
=================================================================== |
--- base/rand_util_posix.cc (revision 106774) |
+++ base/rand_util_posix.cc (working copy) |
@@ -23,7 +23,7 @@ |
public: |
URandomFd() { |
fd_ = open("/dev/urandom", O_RDONLY); |
- CHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno; |
+ DCHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno; |
} |
~URandomFd() { |
@@ -49,7 +49,7 @@ |
bool success = file_util::ReadFromFD(urandom_fd, |
reinterpret_cast<char*>(&number), |
sizeof(number)); |
- CHECK(success); |
+ DCHECK(success); |
jar (doing other things)
2011/10/23 00:36:28
I think this is worth leaving as a CHECK. Random
|
return number; |
} |