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

Unified Diff: net/quic/crypto/quic_random.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef 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 | « net/quic/crypto/quic_random.h ('k') | net/quic/crypto/quic_random_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/quic_random.cc
diff --git a/net/quic/crypto/quic_random.cc b/net/quic/crypto/quic_random.cc
index 5670e34f03169d8519387596474146c96e557233..ad130a0858dff6a06125094bd87a42678787d669 100644
--- a/net/quic/crypto/quic_random.cc
+++ b/net/quic/crypto/quic_random.cc
@@ -5,6 +5,7 @@
#include "net/quic/crypto/quic_random.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/memory/singleton.h"
#include "crypto/random.h"
@@ -18,7 +19,7 @@ class DefaultRandom : public QuicRandom {
// QuicRandom implementation
void RandBytes(void* data, size_t len) override;
- uint64 RandUint64() override;
+ uint64_t RandUint64() override;
void Reseed(const void* additional_entropy, size_t entropy_len) override;
private:
@@ -37,8 +38,8 @@ void DefaultRandom::RandBytes(void* data, size_t len) {
crypto::RandBytes(data, len);
}
-uint64 DefaultRandom::RandUint64() {
- uint64 value;
+uint64_t DefaultRandom::RandUint64() {
+ uint64_t value;
RandBytes(&value, sizeof(value));
return value;
}
« no previous file with comments | « net/quic/crypto/quic_random.h ('k') | net/quic/crypto/quic_random_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698