rng_test_helpers.h 756 B

1234567891011121314151617181920212223242526
  1. /* Copyright (c) 2017-2019, The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. #ifndef TOR_RNG_TEST_HELPERS_H
  4. #define TOR_RNG_TEST_HELPERS_H
  5. #include "core/or/or.h"
  6. void testing_enable_deterministic_rng(void);
  7. void testing_enable_reproducible_rng(void);
  8. void testing_enable_prefilled_rng(const void *buffer, size_t buflen);
  9. void testing_prefilled_rng_reset(void);
  10. void testing_disable_rng_override(void);
  11. #define testing_disable_reproducible_rng() \
  12. testing_disable_rng_override()
  13. #define testing_disable_deterministic_rng() \
  14. testing_disable_rng_override()
  15. #define testing_disable_prefilled_rng() \
  16. testing_disable_rng_override()
  17. void testing_dump_reproducible_rng_seed(void);
  18. #endif /* !defined(TOR_RNG_TEST_HELPERS_H) */