tor/src/test/rng_test_helpers.h
Nick Mathewson 261d43cdd5 Make testing_disable_reproducible_rng() log seed on test failure
This should let us simplify test_prob_distr.c and other stuff in the
future.
2019-05-15 07:50:56 -04:00

25 lines
723 B
C

/* Copyright (c) 2017-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */
#ifndef TOR_RNG_TEST_HELPERS_H
#define TOR_RNG_TEST_HELPERS_H
#include "core/or/or.h"
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);
void testing_disable_reproducible_rng(void);
#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);
#endif /* !defined(TOR_RNG_TEST_HELPERS_H) */