Improvements in FNV1A hash functions

- Add FNV1a64 hash function
- make hash function type aware
- add unit tests
This commit is contained in:
Martin van Hensbergen 2024-10-09 21:19:14 +02:00
parent 4656faed6c
commit ee84c0c59a
9 changed files with 154 additions and 50 deletions

View file

@ -252,6 +252,7 @@ static std::unordered_map<std::string, unsigned int> func_attrs = {
{"fmt", ATTR_FOLDABLE},
{"fmt_ftp_port", ATTR_IDEMPOTENT}, // can error
{"fnv1a32", ATTR_FOLDABLE},
{"fnv1a64", ATTR_FOLDABLE},
{"generate_all_events", ATTR_NO_SCRIPT_SIDE_EFFECTS},
{"get_broker_stats", ATTR_NO_ZEEK_SIDE_EFFECTS},
{"get_conn_stats", ATTR_NO_ZEEK_SIDE_EFFECTS},