mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-15 16:50:16 +01:00
negentropy: fuzz testing, move accumulator to vector package.
This commit is contained in:
@@ -117,10 +117,10 @@ func writeVarInt(w *StringHexWriter, n int) {
|
||||
return
|
||||
}
|
||||
|
||||
w.WriteBytes(encodeVarInt(n))
|
||||
w.WriteBytes(EncodeVarInt(n))
|
||||
}
|
||||
|
||||
func encodeVarInt(n int) []byte {
|
||||
func EncodeVarInt(n int) []byte {
|
||||
if n == 0 {
|
||||
return []byte{0}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user