fix: remove unused files

This commit is contained in:
lilong.129
2025-03-03 20:54:36 +08:00
parent af5d2eea86
commit d1af4cfe61
7 changed files with 11 additions and 15 deletions

View File

@@ -47,10 +47,6 @@ func escapeQuotes(s string) string {
return quoteEscaper.Replace(s)
}
func init() {
rand.Seed(time.Now().UnixNano())
}
func random_range(a, b float64) float64 {
return a + rand.Float64()*(b-a)
}

View File

@@ -356,7 +356,6 @@ func ConvertToStringSlice(val interface{}) ([]string, error) {
func GetFreePort() (int, error) {
minPort := 20000
maxPort := 50000
rand.Seed(time.Now().UnixNano())
for i := 0; i < 10; i++ {
port := rand.Intn(maxPort-minPort+1) + minPort
addr := fmt.Sprintf("0.0.0.0:%d", port)
@@ -366,7 +365,7 @@ func GetFreePort() (int, error) {
return port, nil
}
}
return 0, errors.New("failed to find available port in range")
return 0, errors.New("failed to get available port")
}
func GetCurrentDay() string {

View File

@@ -1 +1 @@
v5.0.0+2503032034
v5.0.0+2503032054