mirror of
				https://github.com/imgproxy/imgproxy.git
				synced 2025-10-30 23:08:02 +02:00 
			
		
		
		
	Get rid of rand.Seed() (not needed since Go 1.20)
This commit is contained in:
		| @@ -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] }) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user