This commit is contained in:
Leonid Bugaev
2016-12-23 19:56:33 +03:00
parent 5a7bdd3d3a
commit 92b02e4af4
18 changed files with 395 additions and 300 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ const (
)
func randByte(len int) []byte {
b := make([]byte, len / 2)
b := make([]byte, len/2)
rand.Read(b)
h := make([]byte, len)
@@ -100,7 +100,7 @@ func payloadID(payload []byte) []byte {
return []byte{}
}
return payload[2: 2 + idx]
return payload[2 : 2+idx]
}
func isOriginPayload(payload []byte) bool {