Skip to main content

generate_external_group_id

Function generate_external_group_id 

Source
pub fn generate_external_group_id() -> [u8; 16]
Expand description

Generate a fresh random external_group_id of the recommended length (RECOMMENDED_EXTERNAL_GROUP_ID_LEN bytes from the workspace CSPRNG).

Callers with application-specific identifier schemes (UUIDs, snowflakes, short slot keys, …) should construct their own bytes instead — this helper exists as the safe default.