mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-11-06 10:12:40 +00:00
15 lines
229 B
Go
15 lines
229 B
Go
package reverse
|
|
|
|
import (
|
|
"crypto/rand"
|
|
"io"
|
|
mrand "math/rand/v2"
|
|
)
|
|
|
|
func (c *Control) FillInRandom() {
|
|
randomLength := mrand.N(64)
|
|
randomLength++
|
|
c.Random = make([]byte, randomLength)
|
|
io.ReadFull(rand.Reader, c.Random)
|
|
}
|