From 1ef474b3e11147df417c150a685fd5ee56d5b43f Mon Sep 17 00:00:00 2001 From: Scud Date: Tue, 6 Oct 2026 20:45:33 -0700 Subject: [PATCH] Fix a line preventing the echo example from compiling. --- examples/echo/main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/echo/main.go b/examples/echo/main.go index 3fadabc4..9d9b60fa 100644 --- a/examples/echo/main.go +++ b/examples/echo/main.go @@ -267,9 +267,15 @@ func clientLoop(destHash []byte, t *transport.Transport, timeout float64) error continue } + randomHash, err := identity.GetRandomHash() + if err != nil { + debug.Log(debug.DebugError, "Failed to get random hash", "error", err) + os.Exit(1) + } + echoRequest := packet.NewPacket( destination.Single, - identity.GetRandomHash(), + randomHash, packet.PacketTypeData, packet.ContextNone, 0,