mirror of https://github.com/v2ray/v2ray-core
format code
parent
2566fc3d14
commit
c467da4950
10
vid.go
10
vid.go
|
@ -1,7 +1,7 @@
|
|||
package core
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
)
|
||||
|
@ -10,10 +10,10 @@ import (
|
|||
type VID [16]byte
|
||||
|
||||
func (v VID) Hash(suffix []byte) []byte {
|
||||
md5 := md5.New()
|
||||
md5.Write(v[:])
|
||||
md5.Write(suffix)
|
||||
return md5.Sum(nil)
|
||||
md5 := md5.New()
|
||||
md5.Write(v[:])
|
||||
md5.Write(suffix)
|
||||
return md5.Sum(nil)
|
||||
}
|
||||
|
||||
var byteGroups = []int{8, 4, 4, 4, 12}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package core
|
||||
|
||||
type VUserSet struct {
|
||||
validUserIds [][]byte
|
||||
validUserIds [][]byte
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue