Files
sing-box-extended-mirror/transport/clashssr/tools/bufPool.go
T

12 lines
167 B
Go
Raw Normal View History

2022-09-14 21:26:35 +08:00
package tools
import (
"bytes"
"crypto/rand"
"io"
)
func AppendRandBytes(b *bytes.Buffer, length int) {
b.ReadFrom(io.LimitReader(rand.Reader, int64(length)))
}