summaryrefslogblamecommitdiffstats
path: root/vendor/github.com/rs/xid/hostid_linux.go
blob: 7d0c4a9ec4a10980453d7a77304b44758fd2402e (plain) (tree)
1
2
3
4
5
6
7
8
9
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
}