Skip to main content

petname

Function petname 

Source
pub fn petname(node_id: &str) -> String
Expand description

The stable “adjective_color_animal_0000” label for a node id, e.g. “happy_green_rabbit_4831”. Same input always produces the same output — derived from a sha256 digest of the id (lowercased first, so a node id that happens to arrive in mixed case still maps to the same petname as its lowercase form), not from anything process-local like a random seed or insertion order.