diff options
Diffstat (limited to 'vendor/github.com/rs/xid/hostid_linux.go')
-rw-r--r-- | vendor/github.com/rs/xid/hostid_linux.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/rs/xid/hostid_linux.go b/vendor/github.com/rs/xid/hostid_linux.go new file mode 100644 index 00000000..7d0c4a9e --- /dev/null +++ b/vendor/github.com/rs/xid/hostid_linux.go @@ -0,0 +1,10 @@ +// +build linux + +package xid + +import "io/ioutil" + +func readPlatformMachineID() (string, error) { + b, err := ioutil.ReadFile("/sys/class/dmi/id/product_uuid") + return string(b), err +} |