github.com/xraypb/Xray-core@v1.8.1/app/reverse/config.go (about)

     1  package reverse
     2  
     3  import (
     4  	"crypto/rand"
     5  	"io"
     6  
     7  	"github.com/xraypb/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  }