ctypes wrapper around libhashring