Xray-core/app/reverse/config.go

15 lines
235 B
Go
Raw Permalink Normal View History

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