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

Function pseudoUUID

config.go:232–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230}
231
232func pseudoUUID() (uuid string) {
233 b := make([]byte, 16)
234 _, err := rand.Read(b)
235 if err != nil {
236 fmt.Println("Error: ", err)
237 return
238 }
239 uuid = fmt.Sprintf("%X-%X-%X-%X-%X", b[0:4], b[4:6], b[6:8], b[8:10], b[10:])
240 return
241}

Callers 1

clAdMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected