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

Unified Diff: remoting/host/host_secret.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « remoting/host/host_mock_objects.h ('k') | remoting/host/host_status_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_secret.cc
diff --git a/remoting/host/host_secret.cc b/remoting/host/host_secret.cc
index 7ec752f4c0eead6692deef0190fc35ca0b44c171..e4e1dfe0ad54ec357fbd71007eed2e033b0e9e68 100644
--- a/remoting/host/host_secret.cc
+++ b/remoting/host/host_secret.cc
@@ -4,6 +4,8 @@
#include "remoting/host/host_secret.h"
+#include <stdint.h>
+
#include <string>
#include "base/logging.h"
@@ -22,7 +24,7 @@ const char kHostSecretAlphabet[] = "0123456789";
// Generates cryptographically strong random number in the range [0, max).
int CryptoRandomInt(int max) {
- uint32 random_int32;
+ uint32_t random_int32;
base::RandBytes(&random_int32, sizeof(random_int32));
return random_int32 % max;
}
« no previous file with comments | « remoting/host/host_mock_objects.h ('k') | remoting/host/host_status_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698