Removed warnings from go staticcheck

This commit is contained in:
gezimbll
2023-11-07 02:27:59 -05:00
committed by Dan Christian Bogos
parent c2dacc42c1
commit 09e5088262
57 changed files with 80 additions and 137 deletions

View File

@@ -187,7 +187,6 @@ func (rbcs *RandomBalancesSorter) Sort() {
src := *rbcs
// randomize balance chain
dest := make([]*Balance, len(src))
rand.Seed(time.Now().UnixNano())
perm := rand.Perm(len(src))
for i, v := range perm {
dest[v] = src[i]