MCPcopy Create free account
hub / github.com/goadesign/goa / UUID

Method UUID

expr/random.go:177–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 return r.faker.Characters(n)
176}
177func (r *FakerRandomizer) UUID() string {
178 uuid := make([]byte, 16)
179 r.rand.Read(uuid)
180 uuid[6] = (uuid[6] & 0x0f) | 0x40
181 uuid[8] = (uuid[8] & 0x3f) | 0x80
182 return fmt.Sprintf("%x-%x-%x-%x-%x", uuid[0:4], uuid[4:6], uuid[6:8], uuid[8:10], uuid[10:])
183}
184func (r *FakerRandomizer) Name() string {
185 return r.faker.Name()
186}

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected