diff options
author | lloyd <[email protected]> | 2010-10-12 20:23:47 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-12 20:23:47 +0000 |
commit | 6385602fcccfd9c561b1c097095ddd2edf1a2357 (patch) | |
tree | 63374ebafd20b09ff4ad77d624a4b27c87b1062c /src/libstate/global_rng.cpp | |
parent | ab1f661083053df745daf1e1b8f4859f5a92065d (diff) |
Use size_t instead of u32bit in entropy and rng
Diffstat (limited to 'src/libstate/global_rng.cpp')
-rw-r--r-- | src/libstate/global_rng.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstate/global_rng.cpp b/src/libstate/global_rng.cpp index 2678813f1..a73924213 100644 --- a/src/libstate/global_rng.cpp +++ b/src/libstate/global_rng.cpp @@ -105,7 +105,7 @@ void add_entropy_sources(RandomNumberGenerator* rng) class Serialized_PRNG : public RandomNumberGenerator { public: - void randomize(byte out[], u32bit len) + void randomize(byte out[], size_t len) { Mutex_Holder lock(mutex); rng->randomize(out, len); @@ -129,7 +129,7 @@ class Serialized_PRNG : public RandomNumberGenerator return rng->name(); } - void reseed(u32bit poll_bits) + void reseed(size_t poll_bits) { Mutex_Holder lock(mutex); rng->reseed(poll_bits); @@ -141,7 +141,7 @@ class Serialized_PRNG : public RandomNumberGenerator rng->add_entropy_source(es); } - void add_entropy(const byte in[], u32bit len) + void add_entropy(const byte in[], size_t len) { Mutex_Holder lock(mutex); rng->add_entropy(in, len); |