2020-11-25 19:01:53 +08:00
|
|
|
package reverse
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"crypto/rand"
|
|
|
|
|
"io"
|
2026-11-05 18:19:47 +08:00
|
|
|
mrand "math/rand/v2"
|
2020-11-25 19:01:53 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (c *Control) FillInRandom() {
|
2026-11-05 18:19:47 +08:00
|
|
|
randomLength := mrand.N(64)
|
2025-07-23 12:09:17 +02:00
|
|
|
randomLength++
|
2020-11-25 19:01:53 +08:00
|
|
|
c.Random = make([]byte, randomLength)
|
|
|
|
|
io.ReadFull(rand.Reader, c.Random)
|
|
|
|
|
}
|