all: stop using math/rand.Seed

Fixes #16428.

Signed-off-by: Jes Cok <xigua67damn@gmail.com>
This commit is contained in:
Jes Cok
2023-08-20 16:25:25 +08:00
parent cfbb60d8af
commit 52748f60f3
7 changed files with 0 additions and 14 deletions

View File

@ -20,7 +20,6 @@ import (
"expvar"
"fmt"
"math"
"math/rand"
"net/http"
"path"
"regexp"
@ -120,8 +119,6 @@ var (
)
func init() {
rand.Seed(time.Now().UnixNano())
expvar.Publish(
"file_descriptor_limit",
expvar.Func(