Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: util/net/http_multipart_builder.cc

Issue 796643006: win: avoid warning on return of base::RandGenerator (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/net/http_multipart_builder.cc
diff --git a/util/net/http_multipart_builder.cc b/util/net/http_multipart_builder.cc
index 3f66658c46ee54e54e123f5833d480b35396ac6c..29b00af0c1c0b217bc751e99da789d15d7214a4e 100644
--- a/util/net/http_multipart_builder.cc
+++ b/util/net/http_multipart_builder.cc
@@ -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 += "---";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698