Skip to content
Snippets Groups Projects
Commit 55103996 authored by Jake Taylor's avatar Jake Taylor
Browse files

added shuffling to send preferred

parent 5ff1e024
No related branches found
No related tags found
1 merge request!23Release
......@@ -100,7 +100,7 @@ func (s *Sender) SendToPreferred(targets []*id.ID,
// Get the hosts and shuffle randomly
targetHosts := s.getPreferred(targets)
var rndBytes [8]byte
var rndBytes [32]byte
stream := s.rng.GetStream()
_, err := stream.Read(rndBytes[:])
stream.Close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment