diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-11-29 12:00:40 +0100 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-02-11 15:21:50 +0100 |
commit | 2e38a0e6865187d1f0d0f016d3df7cce414a7c4f (patch) | |
tree | 01d9f8ff7c8f61f1f80ef38e1be9c078e1722af3 /src/test/fuzz/netaddress.cpp | |
parent | 97208634b96f2d9a55f2ead7b0ef407da729d7bd (diff) |
net: add CServiceHash constructor so the caller can provide the salts
This new constructor will be useful if we just want to hash a `CService`
object without the two `GetRand()` calls (in `RelayAddress()` in a
subsequent commit).
Diffstat (limited to 'src/test/fuzz/netaddress.cpp')
-rw-r--r-- | src/test/fuzz/netaddress.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/fuzz/netaddress.cpp b/src/test/fuzz/netaddress.cpp index 6cb81901cb..56accbb3b9 100644 --- a/src/test/fuzz/netaddress.cpp +++ b/src/test/fuzz/netaddress.cpp @@ -84,6 +84,8 @@ FUZZ_TARGET(netaddress) (void)service.ToString(); (void)service.ToStringIPPort(); (void)service.ToStringPort(); + (void)CServiceHash()(service); + (void)CServiceHash(0, 0)(service); const CNetAddr other_net_addr = ConsumeNetAddr(fuzzed_data_provider); (void)net_addr.GetReachabilityFrom(&other_net_addr); |