diff options
author | Jack Lloyd <[email protected]> | 2018-09-13 15:28:01 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-09-13 15:28:01 -0400 |
commit | 175ddee5719138a0a3cdb5ba7fae6ce8e28f69b7 (patch) | |
tree | 658a4f986a271575609fc25028328b6a4e5b70a7 /src | |
parent | 04ffdc8cf9a5a339f8a310c5e0c278d398450093 (diff) |
In AutoSeeded_RNG invoke randomize_with_ts_input on the owned RNG
Invoking on this means we use RandomNumberGenerator::randomize_with_ts_input
which just adds timestamps. Whereas Stateful_RNG::randomize_with_ts_input
(as implemented by the owned RNG) also adds the reseed counter and the last pid.
Probably no real difference, but can't hurt and not any slower.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/rng/auto_rng/auto_rng.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rng/auto_rng/auto_rng.cpp b/src/lib/rng/auto_rng/auto_rng.cpp index ec439e7cf..8494f115a 100644 --- a/src/lib/rng/auto_rng/auto_rng.cpp +++ b/src/lib/rng/auto_rng/auto_rng.cpp @@ -100,7 +100,7 @@ size_t AutoSeeded_RNG::reseed(Entropy_Sources& srcs, void AutoSeeded_RNG::randomize(uint8_t output[], size_t output_len) { - randomize_with_ts_input(output, output_len); + m_rng->randomize_with_ts_input(output, output_len); } void AutoSeeded_RNG::randomize_with_input(uint8_t output[], size_t output_len, |