|
@ -23,7 +23,7 @@ func makePeers(numPeers int, minHeight, maxHeight int64) map[string]testPeer { |
|
|
peers := make(map[string]testPeer, numPeers) |
|
|
peers := make(map[string]testPeer, numPeers) |
|
|
for i := 0; i < numPeers; i++ { |
|
|
for i := 0; i < numPeers; i++ { |
|
|
peerID := cmn.RandStr(12) |
|
|
peerID := cmn.RandStr(12) |
|
|
height := minHeight + int64(rand.Intn(int(maxHeight-minHeight))) |
|
|
|
|
|
|
|
|
height := minHeight + rand.Int63n(maxHeight-minHeight) |
|
|
peers[peerID] = testPeer{peerID, height} |
|
|
peers[peerID] = testPeer{peerID, height} |
|
|
} |
|
|
} |
|
|
return peers |
|
|
return peers |
|
|