mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-22 20:29:17 -04:00
fix some lint errors
This commit is contained in:
@@ -36,7 +36,7 @@ func (a *Authentication) ApplySecret(b []byte) {
|
||||
|
||||
func generateRandomBytes(random []byte) {
|
||||
for {
|
||||
common.Must2(rand.Read(random[:]))
|
||||
common.Must2(rand.Read(random))
|
||||
|
||||
if random[0] == 0xef {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user