mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-05-04 00:39:17 -05:00
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:
+2
-2
@@ -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}),
|
||||
|
||||
Reference in New Issue
Block a user