diff options
author | lloyd <[email protected]> | 2008-04-10 05:50:57 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-04-10 05:50:57 +0000 |
commit | 59e71322cad61ff2f09664fc3e59b5446af4566a (patch) | |
tree | d6bf11f3541d891228f755eeb0a2fef1904852eb /src/base.cpp | |
parent | a5cbd8f304d646352789686a659c6923e320f22d (diff) |
Remove severa global configuration variables related to entropy gathering,
instead passing those values as arguments.
Diffstat (limited to 'src/base.cpp')
-rw-r--r-- | src/base.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/base.cpp b/src/base.cpp index 2117167ad..bae2f4618 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -220,15 +220,7 @@ void RandomNumberGenerator::add_entropy(const byte random[], u32bit length) u32bit RandomNumberGenerator::add_entropy(EntropySource& source, bool slow_poll) { - std::string poll_type; - if(slow_poll) - poll_type = "rng/slow_poll_request"; - else - poll_type = "rng/fast_poll_request"; - - u32bit poll_for = global_config().option_as_u32bit(poll_type); - - SecureVector<byte> buffer(poll_for ? poll_for : 256); + SecureVector<byte> buffer(DEFAULT_BUFFERSIZE); u32bit bytes_gathered = 0; |