chore: make as exception to mnd

This commit is contained in:
Henrique Dias
2025-06-27 08:15:39 +02:00
parent 8230eb7ab5
commit ae4fb0ea25
8 changed files with 19 additions and 13 deletions

View File

@@ -72,7 +72,7 @@ func (s *Server) GetTokenExpirationTime(fallback time.Duration) time.Duration {
// GenerateKey generates a key of 512 bits.
func GenerateKey() ([]byte, error) {
b := make([]byte, 64) //nolint:mnd
b := make([]byte, 64)
_, err := rand.Read(b)
// Note that err == nil only if we read len(b) bytes.
if err != nil {