mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-17 22:57:10 +00:00
Fix test break
This commit is contained in:
1 parent
075753c030
commit
b40be74b86
15 files changed
+50
-48
No files matched your search
@@ -1,12 +0,0 @@
|
||||
package protocol
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
)
|
||||
|
||||
type RandomInt64InRange func(base int64, delta int) int64
|
||||
|
||||
func GenerateRandomInt64InRange(base int64, delta int) int64 {
|
||||
rangeInDelta := rand.Intn(delta*2) - delta
|
||||
return base + int64(rangeInDelta)
|
||||
}
|
||||
Reference in new issue
Block a user