Skip to main content

machine_fingerprint

Function machine_fingerprint 

Source
pub fn machine_fingerprint(machine_id: &[u8], os_user_id: &[u8]) -> [u8; 32]
Expand description

Compute the 32-byte machine fingerprint from raw platform inputs.

Pure: the caller supplies the raw machine_id bytes and the per-OS-user id bytes (read by platform::machine_id_raw / platform::os_user_id_bytes). The OS-user component is what stops two different users on one shared host (same /etc/machine-id) from cross-pairing — different uid → different fingerprint → receiver’s strict-equality check fails.