config.go 245 B

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