github.com/EagleQL/Xray-core@v1.4.3/app/reverse/config.go (about) 1 package reverse 2 3 import ( 4 "crypto/rand" 5 "io" 6 7 "github.com/xtls/xray-core/common/dice" 8 ) 9 10 func (c *Control) FillInRandom() { 11 randomLength := dice.Roll(64) 12 c.Random = make([]byte, randomLength) 13 io.ReadFull(rand.Reader, c.Random) 14 }