Chromium Code Reviews| Index: base/rand_util.cc |
| =================================================================== |
| --- base/rand_util.cc (revision 111826) |
| +++ base/rand_util.cc (working copy) |
| @@ -71,6 +71,7 @@ |
| } |
| std::string RandBytesAsString(size_t length) { |
| + DCHECK_GT(length, 0u); |
| std::string result; |
| RandBytes(WriteInto(&result, length + 1), length); |
| return result; |