summaryrefslogtreecommitdiffstats
path: root/base/rand_util.cc
diff options
context:
space:
mode:
authorkushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-13 22:13:33 +0000
committerkushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-13 22:13:33 +0000
commit88563f68ec16520622e52672f352bee026865557 (patch)
treee7e5dc554372b4bc695a7dad9908732a6f527156 /base/rand_util.cc
parent6275aa9b9c9237147d7a2dc74a60da5bd68a21ef (diff)
downloadchromium_src-88563f68ec16520622e52672f352bee026865557.zip
chromium_src-88563f68ec16520622e52672f352bee026865557.tar.gz
chromium_src-88563f68ec16520622e52672f352bee026865557.tar.bz2
Continuing with DCHECK() replacement. Switching to DCHECK_GT for better debug of broken contracts
BUG=58409 Review URL: http://codereview.chromium.org/6690002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77977 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/rand_util.cc')
-rw-r--r--base/rand_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/rand_util.cc b/base/rand_util.cc
index 0576c94..4a455f1 100644
--- a/base/rand_util.cc
+++ b/base/rand_util.cc
@@ -37,7 +37,7 @@ double RandDouble() {
}
uint64 RandGenerator(uint64 max) {
- DCHECK(max > 0);
+ DCHECK_GT(max, 0ULL);
return base::RandUint64() % max;
}