From 4a3c0dbd1ce70f571e8b7354e85cd7c06c2100e0 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 11 Nov 2008 20:37:55 +0000 Subject: Wrap at 80 columns --- src/rng/hmac_rng/hmac_rng.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rng/hmac_rng/hmac_rng.cpp') diff --git a/src/rng/hmac_rng/hmac_rng.cpp b/src/rng/hmac_rng/hmac_rng.cpp index ffc5549e2..d85cebada 100644 --- a/src/rng/hmac_rng/hmac_rng.cpp +++ b/src/rng/hmac_rng/hmac_rng.cpp @@ -68,7 +68,9 @@ void HMAC_RNG::randomize(byte out[], u32bit length) /* Every once in a while do a fast poll of a entropy source */ if(entropy_sources.size() && (counter % 65536 == 0)) { - u32bit got = entropy_sources.at(source_index)->fast_poll(io_buffer, io_buffer.size()); + u32bit got = entropy_sources.at(source_index)-> + fast_poll(io_buffer, io_buffer.size()); + source_index = (source_index + 1) % entropy_sources.size(); extractor->update(io_buffer, got); } -- cgit v1.2.3