Package rand contains utility functions largely for unit testing.
WARNING: Do not use the functions in this package that generate rand / seeds
for any security related purposes, outside of testing.
GetRandomPort returns a random port number.
The binding address should not need to be configurable
as this is a short-lived operation just to discover a random available port.
Note that there is a possible race condition here if another process binds
to the same port between the time we discover it and the time we use it.
This is unlikely to happen in practice, but if it does, the user will
need to retry the command.
Marking a nosec here because we want this to listen on all addresses to
ensure a reliable connection chance for the client. This is based on lessons
learned from the sigstore CLI.