Remove dice package

This commit is contained in:
Fangliding
2026-11-05 18:19:47 +08:00
parent a52db8f6ed
commit c8c24a2e60
20 changed files with 40 additions and 149 deletions
+2 -3
View File
@@ -3,12 +3,11 @@ package reverse
import (
"crypto/rand"
"io"
"github.com/xtls/xray-core/common/dice"
mrand "math/rand/v2"
)
func (c *Control) FillInRandom() {
randomLength := dice.Roll(64)
randomLength := mrand.N(64)
randomLength++
c.Random = make([]byte, randomLength)
io.ReadFull(rand.Reader, c.Random)