aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-05-18 00:57:53 +0000
committerlloyd <[email protected]>2007-05-18 00:57:53 +0000
commit90f3c537059c026b83b9ef9ca7191a4de91f864c (patch)
treea816d00c56e4c3e102a4a0d57c2e525639cba8b7 /modules
parent9611b6d7a994cdd635ece903e9bd604e1bff34e3 (diff)
Add QueryPerformanceCounter to the Win32 fast entropy poll, as it can't
hurt and might help. From Yves Jerschow.
Diffstat (limited to 'modules')
-rw-r--r--modules/es_win32/es_win32.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/es_win32/es_win32.cpp b/modules/es_win32/es_win32.cpp
index c0a1ed750..1428b588a 100644
--- a/modules/es_win32/es_win32.cpp
+++ b/modules/es_win32/es_win32.cpp
@@ -100,6 +100,10 @@ void Win32_EntropySource::do_fast_poll()
add_bytes(&point, sizeof(point));
GetCaretPos(&point);
add_bytes(&point, sizeof(point));
+
+ LARGE_INTEGER perf_counter;
+ QueryPerformanceCounter(&perf_counter);
+ add_bytes(&perf_counter, sizeof(perf_counter));
}
}