MCPcopy Create free account
hub / github.com/celzero/firestack / RandomIPFromPrefix

Function RandomIPFromPrefix

intra/core/ip.go:28–70  ·  view source on GitHub ↗

RandomIPFromPrefix returns a random IP from the provided CIDR prefix. Supports IPv4 and IPv6. Does not support mapped inputs.

(cidr netip.Prefix)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Exit64EndpointsFunction · 0.92

Calls 3

AddrMethod · 0.80
ErrorfMethod · 0.65
AddMethod · 0.65

Tested by

no test coverage detected