win: avoid warning on return of base::RandGenerator

Else,

d:\src\crashpad\crashpad\util\net\http_multipart_builder.cc(50) : warning C4244: 'initializing' : conversion from 'uint64_t' to 'int', possible loss of data

R=mark@chromium.org
BUG=crashpad:1

Review URL: https://codereview.chromium.org/796643006
This commit is contained in:
Scott Graham 2014-12-17 10:50:05 -08:00
parent db6492e154
commit 3eeae10ebe

View File

@ -46,7 +46,7 @@ std::string GenerateBoundaryString() {
for (int index = 0; index < 32; ++index) {
const char kCharacters[] =
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
int random_value = base::RandGenerator(strlen(kCharacters));
int random_value = base::RandInt(0, strlen(kCharacters) - 1);
boundary_string += kCharacters[random_value];
}
boundary_string += "---";