mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
salt based bit shift hash
This commit is contained in:
@@ -37,6 +37,22 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <xrpl/beast/hash/xxhasher.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
void testHasher()
|
||||
{
|
||||
beast::xxhasher hasher{std::uint32_t{8}};
|
||||
|
||||
char a[] = "He";
|
||||
hasher(&a, sizeof(a));
|
||||
|
||||
auto value = static_cast<beast::xxhasher::HashType>(hasher);
|
||||
|
||||
std::cout << value << std::endl;
|
||||
}
|
||||
|
||||
namespace ripple {
|
||||
namespace test {
|
||||
|
||||
@@ -7140,6 +7156,9 @@ private:
|
||||
void
|
||||
run() override
|
||||
{
|
||||
testHasher();
|
||||
|
||||
return;
|
||||
FeatureBitset const all{jtx::supported_amendments()};
|
||||
testInvalidInstance();
|
||||
testInstanceCreate();
|
||||
|
||||
Reference in New Issue
Block a user