summaryrefslogtreecommitdiff
path: root/src/test/rng_test_helpers.h
blob: be95ec9d1dc4f26df117df642d2aea8b5b0e52c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 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_disable_rng_override(void);

#define testing_disable_reproducible_rng() \
  testing_disable_rng_override()
#define testing_disable_deterministic_rng() \
  testing_disable_rng_override()

void testing_dump_reproducible_rng_seed(void);

#endif /* !defined(TOR_RNG_TEST_HELPERS_H) */