2018-05-27 21:48:57 +02:00
|
|
|
// +build freebsd
|
|
|
|
|
|
|
|
package xid
|
|
|
|
|
2018-11-18 18:55:05 +01:00
|
|
|
import "syscall"
|
2018-05-27 21:48:57 +02:00
|
|
|
|
|
|
|
func readPlatformMachineID() (string, error) {
|
2018-11-18 18:55:05 +01:00
|
|
|
return syscall.Sysctl("kern.hostuuid")
|
2018-05-27 21:48:57 +02:00
|
|
|
}
|