From 3ca84612d6e36f98b573b967cbddd379a94ddf43 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 30 Apr 2020 16:09:31 -0400 Subject: [PATCH] gitsrht-update-hook: generate nonce --- 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 f246c9c..2fda535 100644 --- a/gitsrht-update-hook/webhooks.go +++ b/gitsrht-update-hook/webhooks.go @@ -77,7 +77,7 @@ func deliverWebhooks(subs []WebhookSubscription, for _, sub := range subs { var ( - nonceSeed []byte + nonceSeed [8]byte nonceHex []byte ) _, err := rand.Read(nonceSeed) -- 2.38.4