github.com/v2fly/v2ray-core/v4@v4.45.2/app/reverse/config.go (about) 1 //go:build !confonly 2 // +build !confonly 3 4 package reverse 5 6 import ( 7 "crypto/rand" 8 "io" 9 10 "github.com/v2fly/v2ray-core/v4/common/dice" 11 ) 12 13 func (c *Control) FillInRandom() { 14 randomLength := dice.Roll(64) 15 c.Random = make([]byte, randomLength) 16 io.ReadFull(rand.Reader, c.Random) 17 }