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