MCPcopy Create free account
hub / github.com/deepch/RTSPtoRTMP / pseudoUUID

Function pseudoUUID

config.go:197–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195}
196
197func pseudoUUID() (uuid string) {
198 b := make([]byte, 16)
199 _, err := rand.Read(b)
200 if err != nil {
201 fmt.Println("Error: ", err)
202 return
203 }
204 uuid = fmt.Sprintf("%X-%X-%X-%X-%X", b[0:4], b[4:6], b[6:8], b[8:10], b[10:])
205 return
206}

Callers 1

clAdMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected