diff options
Diffstat (limited to 'src/entropy/dev_random')
-rw-r--r-- | src/entropy/dev_random/es_dev.cpp | 2 | ||||
-rw-r--r-- | src/entropy/dev_random/es_dev.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/entropy/dev_random/es_dev.cpp b/src/entropy/dev_random/es_dev.cpp index 426ef8443..04b3a90ee 100644 --- a/src/entropy/dev_random/es_dev.cpp +++ b/src/entropy/dev_random/es_dev.cpp @@ -114,7 +114,7 @@ u32bit Device_EntropySource::slow_poll(byte output[], u32bit length) */ u32bit Device_EntropySource::fast_poll(byte output[], u32bit length) { - return slow_poll(output, std::max<u32bit>(length, 64)); + return slow_poll(output, std::min<u32bit>(length, 64)); } } diff --git a/src/entropy/dev_random/es_dev.h b/src/entropy/dev_random/es_dev.h index 024afbdb4..2c9d93369 100644 --- a/src/entropy/dev_random/es_dev.h +++ b/src/entropy/dev_random/es_dev.h @@ -18,6 +18,8 @@ namespace Botan { class BOTAN_DLL Device_EntropySource : public EntropySource { public: + std::string name() const { return "RNG Device Reader"; } + Device_EntropySource(const std::vector<std::string>& fs) : fsnames(fs) {} |