1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-05-19 22:23:30 +02:00

Fix linting after updating golangci-lint to 1.62.2

This commit is contained in:
Joel Speed 2024-12-31 13:14:39 +01:00
parent c1a21aa877
commit f41a686b43
No known key found for this signature in database
GPG Key ID: 6E80578D6751DEFB

View File

@ -38,8 +38,8 @@ var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
func randSeq(n int) string {
b := make([]rune, n)
for i := range b {
max := big.NewInt(int64(len(letters)))
bigN, err := rand.Int(rand.Reader, max)
maxInt := big.NewInt(int64(len(letters)))
bigN, err := rand.Int(rand.Reader, maxInt)
if err != nil {
// This should never happen
panic(err)