github.com/imannamdari/v2ray-core/v5@v5.0.5/app/reverse/config.go (about) 1 package reverse 2 3 import ( 4 "crypto/rand" 5 "io" 6 7 "github.com/imannamdari/v2ray-core/v5/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 }