]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove unused function: dns_randfn_() in dns.c.
authorAlexander Færøy <ahf@torproject.org>
Mon, 10 May 2021 13:07:24 +0000 (13:07 +0000)
committerAlexander Færøy <ahf@torproject.org>
Wed, 20 Oct 2021 17:35:52 +0000 (17:35 +0000)
This patch unbreaks the current build after tor!369 landed.

See: https://bugs.torproject.org/tpo/core/tor/40371

src/feature/relay/dns.c

index 075d7d7063023eb4433ba1caa1b98c33ff546040..49ed8bd7901e2b1d4b030c86fdacb7a8953f9210 100644 (file)
@@ -211,14 +211,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)