From 4014870a700b4d3216263619cbf98a2f8b2d4b9c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 30 Apr 2020 19:16:46 -0400 Subject: [PATCH] gitsrht-update-hook: update hex array as well --- gitsrht-update-hook/webhooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht-update-hook/webhooks.go b/gitsrht-update-hook/webhooks.go index 59d37e8..d39561e 100644 --- a/gitsrht-update-hook/webhooks.go +++ b/gitsrht-update-hook/webhooks.go @@ -78,7 +78,7 @@ func deliverWebhooks(subs []WebhookSubscription, for _, sub := range subs { var ( nonceSeed []byte = make([]byte, 8) - nonceHex []byte + nonceHex []byte = make([]byte, 16) ) _, err := rand.Read(nonceSeed) if err != nil { -- 2.38.4