xjasonlyu
2 years ago
3 changed files with 14 additions and 7 deletions
@ -1,4 +1,15 @@ |
|||
// Package obfs provides obfuscation functionality for Shadowsocks protocol.
|
|||
package obfs |
|||
|
|||
import ( |
|||
"crypto/rand" |
|||
"math" |
|||
"math/big" |
|||
) |
|||
|
|||
// Ref: github.com/Dreamacro/clash/component/simple-obfs
|
|||
|
|||
func randInt() int { |
|||
n, _ := rand.Int(rand.Reader, big.NewInt(math.MaxInt)) |
|||
return int(n.Int64()) |
|||
} |
|||
|
Loading…
Reference in new issue