base/utils/hash_hrw.bro
-
HashHRW
An implementation of highest random weight (HRW) hashing, also called
rendezvous hashing. See
https://en.wikipedia.org/wiki/Rendezvous_hashing.
Detailed Interface
Types
-
HashHRW::Pool
-
A collection of sites to distribute keys across.
-
HashHRW::Site
Type: | record
- id:
count
A unique identifier for the site, should not exceed what
can be contained in a 32-bit integer.
- user_data:
any &optional
Other data to associate with the site.
|
A site/node is a unique location to which you want a subset of keys
to be distributed.
-
HashHRW::SiteTable
-
A table of sites, indexed by their id.
Functions
-
HashHRW::add_site
-
Add a site to a pool.
Returns: | F is the site is already in the pool, else T. |
-
HashHRW::get_site
-
-
HashHRW::rem_site
-
Remove a site from a pool.
Returns: | F if the site is not in the pool, else T. |