Dependencies: Bump github.com/openfga/openfga from v1.8.6 to v1.8.12 (#105193)

* Dependencies: Bump github.com/openfga/openfga from v1.8.6 to v1.8.12

* Linter: Replace x/exp/rand with math/rand/v2

* NGAlert: Fix test after linter fixes
This commit is contained in:
Matheus Macabu
2025-05-14 11:09:00 +03:00
committed by GitHub
parent ed4680495a
commit 4b426238bd
51 changed files with 489 additions and 515 deletions
@@ -3,6 +3,7 @@ package main
import (
"fmt"
"log"
"math/rand/v2"
"net/http"
"strconv"
"time"
@@ -10,7 +11,6 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/client_golang/prometheus/promhttp"
"golang.org/x/exp/rand"
)
func randomValues(max int) func() (string, bool) {
@@ -23,7 +23,7 @@ func randomValues(max int) func() (string, bool) {
func staticList(input []string) func() string {
return func() string {
i := rand.Intn(len(input))
i := rand.IntN(len(input))
return input[i]
}
+2 -2
View File
@@ -3,6 +3,7 @@ package main
import (
"fmt"
"log"
"math/rand/v2"
"net/http"
"strconv"
"time"
@@ -11,7 +12,6 @@ import (
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/model"
"golang.org/x/exp/rand"
)
func randomValues(max int) func() (string, bool) {
@@ -24,7 +24,7 @@ func randomValues(max int) func() (string, bool) {
func staticList(input []string) func() string {
return func() string {
i := rand.Intn(len(input))
i := rand.IntN(len(input))
return input[i]
}