config.go 224 B

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