maskUUID returns a new UUID with the first 6 bytes changed to the ServicePrefix
(uid uuid.UUID)
| 407 | |
| 408 | // maskUUID returns a new UUID with the first 6 bytes changed to the ServicePrefix |
| 409 | func (p ServicePrefix) maskUUID(uid uuid.UUID) uuid.UUID { |
| 410 | copy(uid[:], p[:]) |
| 411 | return uid |
| 412 | } |
| 413 | |
| 414 | // RandomAddr returns a random IP address in the service prefix. |
| 415 | func (p ServicePrefix) RandomAddr() netip.Addr { |
no outgoing calls
no test coverage detected