diff options
author | lloyd <[email protected]> | 2008-11-10 17:45:29 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-10 17:45:29 +0000 |
commit | 3d83359991fa41126689b29f2a40e1bf7d5ba52b (patch) | |
tree | cee8dc0bac1077324c19b0c98bb16ebf69737d71 /src/entropy/dev_random | |
parent | fa1d5c8174ae6437058f33cb3b276354f9c78c66 (diff) |
Reduce /dev/random poll times: 5ms for fast, 20 for slow
Diffstat (limited to 'src/entropy/dev_random')
-rw-r--r-- | src/entropy/dev_random/es_dev.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entropy/dev_random/es_dev.cpp b/src/entropy/dev_random/es_dev.cpp index ca456b28c..c7a9f6d0e 100644 --- a/src/entropy/dev_random/es_dev.cpp +++ b/src/entropy/dev_random/es_dev.cpp @@ -97,7 +97,7 @@ u32bit Device_EntropySource::slow_poll(byte output[], u32bit length) { for(size_t i = 0; i != devices.size(); ++i) { - const u32bit got = devices[i].get(output, length, 100); + const u32bit got = devices[i].get(output, length, 20); if(got) return got; @@ -113,7 +113,7 @@ u32bit Device_EntropySource::fast_poll(byte output[], u32bit length) { for(size_t i = 0; i != devices.size(); ++i) { - const u32bit got = devices[i].get(output, length, 10); + const u32bit got = devices[i].get(output, length, 5); if(got) return got; |