Skip to content

Commit

Permalink
Ignoring weak random implementation for the request logger instance i…
Browse files Browse the repository at this point in the history
…dentification
  • Loading branch information
Dynom committed Aug 3, 2020
1 parent dcb2f1e commit e3d0efb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))

Expand Down

0 comments on commit e3d0efb

Please sign in to comment.