Xray-core/app/reverse/config.go

17 lines
256 B
Go
Raw Normal View History

2020-11-25 13:01:53 +02:00
// +build !confonly
package reverse
import (
"crypto/rand"
"io"
2020-12-04 03:36:16 +02:00
"github.com/xtls/xray-core/common/dice"
2020-11-25 13:01:53 +02:00
)
func (c *Control) FillInRandom() {
randomLength := dice.Roll(64)
c.Random = make([]byte, randomLength)
io.ReadFull(rand.Reader, c.Random)
}