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

Unified Diff: third_party/mt19937ar/mt19937ar.h

Issue 1551483002: Switch to standard integer types in third_party/mt19937ar/. (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 | « no previous file | third_party/mt19937ar/mt19937ar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mt19937ar/mt19937ar.h
diff --git a/third_party/mt19937ar/mt19937ar.h b/third_party/mt19937ar/mt19937ar.h
index 31c6960c7caf1ed0742f6edbac69babf27c7b48d..e3c4f113c9ceb1576e6a58918b1e781b3c69add8 100644
--- a/third_party/mt19937ar/mt19937ar.h
+++ b/third_party/mt19937ar/mt19937ar.h
@@ -44,21 +44,21 @@
#ifndef THIRD_PARTY_MT19937AR_MT19937AR_H_
#define THIRD_PARTY_MT19937AR_MT19937AR_H_
-#include <vector>
+#include <stdint.h>
-#include "base/basictypes.h"
+#include <vector>
class MersenneTwister {
public:
MersenneTwister();
~MersenneTwister();
- void init_genrand(uint32 s);
- void init_by_array(uint32 init_key[], int key_length);
- uint32 genrand_int32(void);
+ void init_genrand(uint32_t s);
+ void init_by_array(uint32_t init_key[], int key_length);
+ uint32_t genrand_int32(void);
private:
- std::vector<uint32> mt; /* the array for the state vector */
+ std::vector<uint32_t> mt; /* the array for the state vector */
int mti; /* mti==N+1 means mt[N] is not initialized */
};
« no previous file with comments | « no previous file | third_party/mt19937ar/mt19937ar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698