GETHOSTID(2) — UNIX Programmer’s Manual
NAME
gethostid − get unique identifier of current host
SYNOPSIS
hostid = gethostid()
long hostid;
DESCRIPTION
Gethostid returns a CPU identification number which is guaranteed to be unique for each CPU. This allows third-party software vendors to use the hostid for copy protection. The hostid is a four byte number with the first byte being the CPU version (only version 1 exists today) and the last three bytes are the last three bytes in the ethernet address (which are guaranteed to be unique).
SEE ALSO
4.2 Berkeley Distribution — June 27, 1989