Skip to content

Commit

Permalink
Document machine.HardwareID
Browse files Browse the repository at this point in the history
  • Loading branch information
kenbell committed Oct 27, 2023
1 parent 725851b commit 184a982
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions content/docs/reference/machine.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,14 @@ CPUReset performs a hard system reset.

Not all chips support CPUReset.

```go
func DeviceID() []byte
```

DeviceID returns a byte array containing a unique id (aka Serial Number) specific to this chip. In some architectures (notably RP2040) the device ID is actually the ID of the flash chip. The device ID can be useful for identifying specific devices within a family. There is no guarantee the ID is globally unique. The size of the ID is chip-family specific with 8 bytes (64 bits) and 16 bytes (128 bits) being common.

Not all chips have a hardware ID.

```go
func GetRNG() uint32
```
Expand Down

0 comments on commit 184a982

Please sign in to comment.