diff options
Diffstat (limited to 'base/rand_util_unittest.cc')
-rw-r--r-- | base/rand_util_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/rand_util_unittest.cc b/base/rand_util_unittest.cc index a3474ba..e0e85ec 100644 --- a/base/rand_util_unittest.cc +++ b/base/rand_util_unittest.cc @@ -41,8 +41,8 @@ TEST(RandUtilTest, RandBytes) { } TEST(RandUtilTest, RandBytesAsString) { - std::string random_string = base::RandBytesAsString(0); - EXPECT_EQ(0U, random_string.size()); + std::string random_string = base::RandBytesAsString(1); + EXPECT_EQ(1U, random_string.size()); random_string = base::RandBytesAsString(145); EXPECT_EQ(145U, random_string.size()); char accumulator = 0; |