Move shadowsocksr implementation to clash
This commit is contained in:
11
transport/clashssr/tools/bufPool.go
Normal file
11
transport/clashssr/tools/bufPool.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package tools
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/rand"
|
||||
"io"
|
||||
)
|
||||
|
||||
func AppendRandBytes(b *bytes.Buffer, length int) {
|
||||
b.ReadFrom(io.LimitReader(rand.Reader, int64(length)))
|
||||
}
|
||||
Reference in New Issue
Block a user