MCPcopy Create free account
hub / github.com/HashLoad/boss / Md5MachineID

Function Md5MachineID

utils/crypto/main.go:73–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73func Md5MachineID() string {
74 hash := md5.New()
75 if _, err := io.WriteString(hash, GetMachineID()); err != nil {
76 msg.Warn("Failed on write machine id to hash")
77 }
78 return hex.EncodeToString(hash.Sum(nil))
79}

Callers 2

makeDefaultFunction · 0.92
LoadConfigurationFunction · 0.92

Calls 3

WarnFunction · 0.92
GetMachineIDFunction · 0.85
NewMethod · 0.80

Tested by

no test coverage detected