aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/entropy/beos_stats/es_beos.cpp1
-rw-r--r--src/entropy/unix_procs/es_unix.cpp1
-rw-r--r--src/entropy/win32_stats/es_win32.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/entropy/beos_stats/es_beos.cpp b/src/entropy/beos_stats/es_beos.cpp
index 0fd9199bd..b5a5e7fee 100644
--- a/src/entropy/beos_stats/es_beos.cpp
+++ b/src/entropy/beos_stats/es_beos.cpp
@@ -19,6 +19,7 @@ u32bit BeOS_EntropySource::fast_poll(byte buf[], u32bit length)
{
if(length == 0)
return 0;
+ length = std::min<u32bit>(length, 32);
u32bit buf_i = 0;
diff --git a/src/entropy/unix_procs/es_unix.cpp b/src/entropy/unix_procs/es_unix.cpp
index be9ecf5eb..a10dd72a4 100644
--- a/src/entropy/unix_procs/es_unix.cpp
+++ b/src/entropy/unix_procs/es_unix.cpp
@@ -50,6 +50,7 @@ u32bit Unix_EntropySource::fast_poll(byte buf[], u32bit length)
{
if(length == 0)
return 0;
+ length = std::min<u32bit>(length, 32);
u32bit buf_i = 0;
diff --git a/src/entropy/win32_stats/es_win32.cpp b/src/entropy/win32_stats/es_win32.cpp
index 31779bee8..a529ccc1a 100644
--- a/src/entropy/win32_stats/es_win32.cpp
+++ b/src/entropy/win32_stats/es_win32.cpp
@@ -88,6 +88,7 @@ u32bit Win32_EntropySource::fast_poll(byte buf[], u32bit length)
{
if(length == 0)
return 0;
+ length = std::min<u32bit>(length, 32);
u32bit buf_i = 0;