generate_user_id

Function generate_user_id 

Source
pub fn generate_user_id() -> Result<String>
Expand description

Generate an anonymous user ID based on machine ID

Format: client_<first_64_chars_of_hash>

This creates a stable, anonymous identifier that:

  • Persists across runs on the same machine
  • Cannot be reverse-engineered to get the machine ID
  • Does not contain any PII