shuffle icon link batches before putting them in the channel

This commit is contained in:
Joe Lothan 2026-05-20 00:50:40 -04:00
parent 27203ff085
commit cd896427eb

View file

@ -5,6 +5,7 @@ import (
"flag" "flag"
"fmt" "fmt"
"log" "log"
"math/rand"
"os" "os"
"sync" "sync"
"sync/atomic" "sync/atomic"
@ -137,6 +138,9 @@ func main() {
break break
} }
rand.Shuffle(len(icons), func(i, j int) {
icons[i], icons[j] = icons[j], icons[i]
})
for _, icon := range icons { for _, icon := range icons {
iconCh <- icon iconCh <- icon
} }