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-04-22 13:13:07 +0000
committerkushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-22 13:13:07 +0000
commitd7a93adb9f63cb2e71cb017d51aa9af4d1f67b09 (patch)
tree46031f33b84c38f7f231d1af10d4af265a98ad7c /base/rand_util.cc
parent1d5c38a395f28f227194fe85611a97de4e6f420e (diff)
downloadchromium_src-d7a93adb9f63cb2e71cb017d51aa9af4d1f67b09.zip
chromium_src-d7a93adb9f63cb2e71cb017d51aa9af4d1f67b09.tar.gz
chromium_src-d7a93adb9f63cb2e71cb017d51aa9af4d1f67b09.tar.bz2
Update DCHECK() usage to utilize the more expressive debugging functions.
BUG=58409 Review URL: http://codereview.chromium.org/6891008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/rand_util.cc')
-rw-r--r--base/rand_util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/rand_util.cc b/base/rand_util.cc
index 4a455f1..ea6ffd3 100644
--- a/base/rand_util.cc
+++ b/base/rand_util.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -14,7 +14,7 @@
namespace base {
int RandInt(int min, int max) {
- DCHECK(min <= max);
+ DCHECK_LE(min, max);
uint64 range = static_cast<uint64>(max) - min + 1;
int result = min + static_cast<int>(base::RandGenerator(range));