From 6385602fcccfd9c561b1c097095ddd2edf1a2357 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 12 Oct 2010 20:23:47 +0000 Subject: Use size_t instead of u32bit in entropy and rng --- src/libstate/global_rng.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstate/global_rng.cpp') 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); -- cgit v1.2.3