github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/deviceid.go (about)

     1  //go:build rp2040 || nrf || sam
     2  
     3  package machine
     4  
     5  // DeviceID returns an identifier that is unique within
     6  // a particular chipset.
     7  //
     8  // The identity is one burnt into the MCU itself, or the
     9  // flash chip at time of manufacture.
    10  //
    11  // It's possible that two different vendors may allocate
    12  // the same DeviceID, so callers should take this into
    13  // account if needing to generate a globally unique id.
    14  //
    15  // The length of the hardware ID is vendor-specific, but
    16  // 8 bytes (64 bits) and 16 bytes (128 bits) are common.
    17  var _ = (func() []byte)(DeviceID)