mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
chore: update golang (to 1.20.x) and golangci-linter (#1388)
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
GitHub
parent
9cc990d7ca
commit
635d07ae04
+3
-2
@@ -6,7 +6,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
mrand "math/rand"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
@@ -904,7 +904,8 @@ func getRandomSize(probabilityRange []float64) (int, int) {
|
||||
|
||||
//nolint:gosec
|
||||
func flipFunc(probabilityRange []float64) int {
|
||||
mrand.Seed(time.Now().UTC().UnixNano())
|
||||
seed := time.Now().UTC().UnixNano()
|
||||
mrand := rand.New(rand.NewSource(seed))
|
||||
toss := mrand.Float64()
|
||||
|
||||
for idx, r := range probabilityRange {
|
||||
|
||||
Reference in New Issue
Block a user