mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-12 11:52:33 +00:00
11 lines
167 B
Go
11 lines
167 B
Go
package tools
|
|
|
|
import (
|
|
"bytes"
|
|
"crypto/rand"
|
|
"io"
|
|
)
|
|
|
|
func AppendRandBytes(b *bytes.Buffer, length int) {
|
|
b.ReadFrom(io.LimitReader(rand.Reader, int64(length)))
|
|
}
|