github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/app/reverse/config.go (about)

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