aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/rng.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-31 20:07:06 -0500
committerJack Lloyd <[email protected]>2017-01-31 20:07:06 -0500
commitae8d2bd859120839ee08bc35daebda7ef4971ea6 (patch)
treecd1a8db67e062854ccd7e9211707b13ee757f64d /src/lib/rng/rng.cpp
parente934e03821ab28dc2573ff52da49a3b700d4cfb7 (diff)
parent328491ce573582058a4ebdef74d687cbd1466c44 (diff)
Merge GH #860 Support CPU instruction probe on Windows, add OS::get_high_resolution_clock
Diffstat (limited to 'src/lib/rng/rng.cpp')
-rw-r--r--src/lib/rng/rng.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rng/rng.cpp b/src/lib/rng/rng.cpp
index 4551ffe83..57e25cdd2 100644
--- a/src/lib/rng/rng.cpp
+++ b/src/lib/rng/rng.cpp
@@ -22,7 +22,7 @@ void RandomNumberGenerator::randomize_with_ts_input(uint8_t output[], size_t out
*/
uint8_t additional_input[16] = { 0 };
store_le(OS::get_system_timestamp_ns(), additional_input);
- store_le(OS::get_processor_timestamp(), additional_input + 8);
+ store_le(OS::get_high_resolution_clock(), additional_input + 8);
randomize_with_input(output, output_len, additional_input, sizeof(additional_input));
}