Files
Xray-core/app/reverse/config.go
T

15 lines
229 B
Go
Raw Normal View History

2020-11-25 19:01:53 +08:00
package reverse
import (
"crypto/rand"
"io"
2026-11-05 18:19:47 +08:00
mrand "math/rand/v2"
2020-11-25 19:01:53 +08:00
)
func (c *Control) FillInRandom() {
2026-11-05 18:19:47 +08:00
randomLength := mrand.N(64)
randomLength++
2020-11-25 19:01:53 +08:00
c.Random = make([]byte, randomLength)
io.ReadFull(rand.Reader, c.Random)
}