Compare commits
No commits in common. "4d51d0a1d0cc1b46cad7cd5a10297b92d04f71d3" and "9fd0eaadb84b7b03560a8a686514f0a7e761304a" have entirely different histories.
4d51d0a1d0
...
9fd0eaadb8
|
@ -4,7 +4,6 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"git.makemake.in/kzkzzzz/mycommon/mylog"
|
"git.makemake.in/kzkzzzz/mycommon/mylog"
|
||||||
"log"
|
"log"
|
||||||
"math/rand/v2"
|
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
|
@ -27,11 +26,6 @@ func SafeGo(fn func()) {
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
// RandRange [min, max] 左右均包含
|
|
||||||
func RandRange(min, max int) int {
|
|
||||||
return rand.IntN(max+1-min) + min
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
getIpOnce = &sync.Once{}
|
getIpOnce = &sync.Once{}
|
||||||
outBoundIp = "127.0.0.1"
|
outBoundIp = "127.0.0.1"
|
||||||
|
|
Loading…
Reference in New Issue