mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
UID optimizations addressing BIT-1016.
Max UID bit-length is now 128, but can be increased w/ trivial source code change of BRO_UID_LEN.
This commit is contained in:
parent
0592b528ef
commit
5c119561ad
6 changed files with 60 additions and 42 deletions
|
@ -64,10 +64,7 @@ string Manager::HashHandle(const string& handle) const
|
|||
MD5(reinterpret_cast<const u_char*>(msg.data()), msg.size(),
|
||||
reinterpret_cast<u_char*>(hash));
|
||||
|
||||
vector<uint64> v;
|
||||
v.push_back(hash[0]);
|
||||
v.push_back(hash[1]);
|
||||
return Bro::UID(bits_per_uid, v).Base62("F");
|
||||
return Bro::UID(bits_per_uid, hash, 2).Base62("F");
|
||||
}
|
||||
|
||||
void Manager::SetHandle(const string& handle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue