tlsdate: randomize IP address selection

Select random addresses for a host.
tlsdate may not have time to try all the addresses, so
randomizing helps when the first ones are not accessible.

Bug: 1057485
Test: manual on eve

Change-Id: Ib1d3d98bb944cbc7f5d0d5285584ab481c318f3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/tlsdate/+/2767318
Tested-by: Michael Ershov <miersh@google.com>
Commit-Queue: Michael Ershov <miersh@google.com>
Reviewed-by: Pavol Marko <pmarko@chromium.org>
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
1 file changed