Function gnunet_sys::GNUNET_CONTAINER_multishortmap_get_random[][src]

pub unsafe extern "C" fn GNUNET_CONTAINER_multishortmap_get_random(
    map: *const GNUNET_CONTAINER_MultiShortmap,
    it: GNUNET_CONTAINER_ShortmapIterator,
    it_cls: *mut c_void
) -> c_uint

@ingroup hashmap Call @a it on a random value from the map, or not at all if the map is empty. Note that this function has linear complexity (in the size of the map).

@param map the map @param it function to call on a random entry @param it_cls extra argument to @a it @return the number of key value pairs processed, zero or one.