Skip to main content

make_id

Function make_id 

Source
pub fn make_id(domain: &str, data: &[u8]) -> u128
Expand description

Compute a deterministic u128 ID from a domain tag and arbitrary data.

The domain tag prevents collisions between different entity kinds that might share the same data bytes.