diff options
author | Alexander Færøy <ahf@torproject.org> | 2021-05-10 13:07:24 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2021-05-10 13:07:24 +0000 |
commit | 9d59d82d405c4e3fa70684389fb7f0c0d2bf1ff6 (patch) | |
tree | e11e733a6c1dcf9422c8e3c23761efd16cf6b65c /src | |
parent | a56ed0cfa4444bc6434e19962cf8f3f726958c0f (diff) | |
download | tor-9d59d82d405c4e3fa70684389fb7f0c0d2bf1ff6.tar.gz tor-9d59d82d405c4e3fa70684389fb7f0c0d2bf1ff6.zip |
Remove unused function: dns_randfn_() in dns.c.
This patch unbreaks the current build after tor!369 landed.
See: https://bugs.torproject.org/tpo/core/tor/40371
Diffstat (limited to 'src')
-rw-r--r-- | src/feature/relay/dns.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/feature/relay/dns.c b/src/feature/relay/dns.c index 67317000b6..54c1de8903 100644 --- a/src/feature/relay/dns.c +++ b/src/feature/relay/dns.c @@ -212,14 +212,6 @@ evdns_log_cb(int warn, const char *msg) tor_log(severity, LD_EXIT, "eventdns: %s", msg); } -/** Helper: passed to eventdns.c as a callback so it can generate random - * numbers for transaction IDs and 0x20-hack coding. */ -static void -dns_randfn_(char *b, size_t n) -{ - crypto_rand(b,n); -} - /** Initialize the DNS subsystem; called by the OR process. */ int dns_init(void) |