From e3d0efbfcebbc6419d73843c4d18dc678466bdcc Mon Sep 17 00:00:00 2001 From: Mark van der Velden Date: Mon, 3 Aug 2020 11:26:39 +0200 Subject: [PATCH] Ignoring weak random implementation for the request logger instance identification --- server/handler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/handler.go b/server/handler.go index 168fa1f..b1046dd 100644 --- a/server/handler.go +++ b/server/handler.go @@ -38,6 +38,8 @@ func serviceHandler(l *logrus.Logger, sr ServiceRegistry, validators []Validator } func createRequestIDHandler(h http.Handler) http.HandlerFunc { + + // #nosec G404 -- Ignoring linter errors for using a weak random implementation rnd := rand.New(rand.NewSource(time.Now().UnixNano())) instanceID := strconv.Itoa(int(rnd.Int31()))