Replace wyhash with something licensable

Unfortunately Lemire's wyhash code was licensed as Apache, we'd rather
have something compatible with GPLv2. This probably a more appropriate
choice anyway.
This commit is contained in:
Joshua Leahy
2025-09-08 12:32:44 +00:00
parent d72f1b494d
commit 99b56195ec
17 changed files with 199 additions and 177 deletions
+2 -2
View File
@@ -21,11 +21,11 @@
#include "PeriodicLoop.hpp"
#include "Protocol.hpp"
#include "SharedRocksDB.hpp"
#include "Random.hpp"
#include "Registry.hpp"
#include "Time.hpp"
#include "Timings.hpp"
#include "UDPSocketPair.hpp"
#include "wyhash.h"
#include "Xmon.hpp"
#include "XmonAgent.hpp"
@@ -270,7 +270,7 @@ public:
_seenShards(false),
_currentLogIndex(_shared.db.lastAppliedLogEntry()),
// important to not catch stray requests from previous executions
_shardRequestIdCounter(wyhash64_rand()),
_shardRequestIdCounter(RandomGenerator().generate64()),
_shardTimeout(options.shardTimeout),
_receiver({.perSockMaxRecvMsg = MAX_MSG_RECEIVE, .maxMsgSize = MAX_UDP_MTU}),
_cdcSender({.maxMsgSize = MAX_UDP_MTU}),