diff options
author | lloyd <[email protected]> | 2008-11-11 20:37:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-11 20:37:55 +0000 |
commit | 4a3c0dbd1ce70f571e8b7354e85cd7c06c2100e0 (patch) | |
tree | a23455841c5031fbaa30144d9571b78ea2c7b06f /src/rng/hmac_rng | |
parent | 7ffcb0d29c9b99e46498d0a8a2e4cf5e100a9d21 (diff) |
Wrap at 80 columns
Diffstat (limited to 'src/rng/hmac_rng')
-rw-r--r-- | src/rng/hmac_rng/hmac_rng.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |