mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-11 10:49:43 +08:00
fix: remove unused files
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1 +1 @@
|
||||
v5.0.0+2503032034
|
||||
v5.0.0+2503032054
|
||||
|
||||
Reference in New Issue
Block a user