github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/app/reverse/config.go (about) 1 package reverse 2 3 import ( 4 "crypto/rand" 5 "io" 6 7 "github.com/xmplusdev/xmcore/common/dice" 8 ) 9 10 func (c *Control) FillInRandom() { 11 randomLength := dice.Roll(64) 12 c.Random = make([]byte, randomLength) 13 io.ReadFull(rand.Reader, c.Random) 14 }