use faster hashing

pull/957/head
Jeff Becker 5 years ago
parent 92bbda600b
commit a7884a82e2
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -273,8 +273,7 @@ namespace llarp
size_t
operator()(const AlignedBuffer& buf) const
{
return std::accumulate(buf.begin(), buf.end(), 0,
std::bit_xor< size_t >());
return *(reinterpret_cast< const size_t* >(buf.data()));
}
};

Loading…
Cancel
Save