mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-18 16:31:44 +02:00
Get rid of rand.Seed() (not needed since Go 1.20)
This commit is contained in:
parent
3b252b83e4
commit
f1230bf2bb
@ -4,7 +4,6 @@ import (
|
||||
"math/rand"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/imgproxy/imgproxy/v3/config"
|
||||
)
|
||||
@ -21,7 +20,6 @@ func initTestData() {
|
||||
testData[i] = make([]byte, i*1271)
|
||||
}
|
||||
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
rand.Shuffle(len(testData), func(i, j int) { testData[i], testData[j] = testData[j], testData[i] })
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user