diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-03-18 09:59:18 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-04-30 11:11:39 -0400 |
commit | fe173ce0bce9b54271d32e0b46a9f6d891b16970 (patch) | |
tree | bf6d33948bb4b7aee759cdcd827333d7007e0f4d /src/test/rng_test_helpers.h | |
parent | 64d5ed0415d69c226b56e518abc8e003780368f0 (diff) | |
download | tor-fe173ce0bce9b54271d32e0b46a9f6d891b16970.tar.gz tor-fe173ce0bce9b54271d32e0b46a9f6d891b16970.zip |
Add a testing PRNG replacement that returns canned data.
Diffstat (limited to 'src/test/rng_test_helpers.h')
-rw-r--r-- | src/test/rng_test_helpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rng_test_helpers.h b/src/test/rng_test_helpers.h index be95ec9d1d..907099450d 100644 --- a/src/test/rng_test_helpers.h +++ b/src/test/rng_test_helpers.h @@ -8,6 +8,9 @@ void testing_enable_deterministic_rng(void); void testing_enable_reproducible_rng(void); +void testing_enable_prefilled_rng(const void *buffer, size_t buflen); + +void testing_prefilled_rng_reset(void); void testing_disable_rng_override(void); @@ -15,6 +18,8 @@ void testing_disable_rng_override(void); testing_disable_rng_override() #define testing_disable_deterministic_rng() \ testing_disable_rng_override() +#define testing_disable_prefilled_rng() \ + testing_disable_rng_override() void testing_dump_reproducible_rng_seed(void); |