diff options
Diffstat (limited to 'cloud_print')
-rw-r--r-- | cloud_print/gcp20/prototype/cloud_print_requester.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cloud_print/gcp20/prototype/cloud_print_requester.cc b/cloud_print/gcp20/prototype/cloud_print_requester.cc index cbfdae4..9b94a38 100644 --- a/cloud_print/gcp20/prototype/cloud_print_requester.cc +++ b/cloud_print/gcp20/prototype/cloud_print_requester.cc @@ -4,6 +4,10 @@ #include "cloud_print/gcp20/prototype/cloud_print_requester.h" +#include <stdint.h> + +#include <limits> + #include "base/bind.h" #include "base/json/json_writer.h" #include "base/md5.h" @@ -122,8 +126,8 @@ void CloudPrintRequester::StartRegistration(const std::string& proxy_id, const LocalSettings& settings, const std::string& cdd) { std::string mime_boundary; - int r1 = base::RandInt(0, kint32max); - int r2 = base::RandInt(0, kint32max); + int r1 = base::RandInt(0, std::numeric_limits<int32_t>::max()); + int r2 = base::RandInt(0, std::numeric_limits<int32_t>::max()); base::SStringPrintf(&mime_boundary, "---------------------------%08X%08X", r1, r2); |