0
0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-08-22 22:48:35 +00:00
XTLS_Xray-core/app/reverse/config.go

16 lines
251 B
Go

package reverse
import (
"crypto/rand"
"io"
"github.com/xtls/xray-core/common/dice"
)
func (c *Control) FillInRandom() {
randomLength := dice.Roll(64)
randomLength++
c.Random = make([]byte, randomLength)
io.ReadFull(rand.Reader, c.Random)
}