From db58964a2121fe91e975845a70827a7a48adcf75 Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 25 Aug 2025 22:30:25 -0700 Subject: [PATCH] compile --- test/s3/iam/s3_iam_framework.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/s3/iam/s3_iam_framework.go b/test/s3/iam/s3_iam_framework.go index 69c9b3e16..9b3ae6366 100644 --- a/test/s3/iam/s3_iam_framework.go +++ b/test/s3/iam/s3_iam_framework.go @@ -2,13 +2,13 @@ package iam import ( "context" - "crypto/rand" + cryptorand "crypto/rand" "crypto/rsa" "encoding/base64" "encoding/json" "fmt" "io" - "math/rand" + mathrand "math/rand" "net/http" "net/http/httptest" "net/url" @@ -91,7 +91,7 @@ func NewS3IAMTestFramework(t *testing.T) *S3IAMTestFramework { t.Logf("Using mock OIDC server for testing") // Generate RSA keys for JWT signing (mock mode) var err error - framework.privateKey, err = rsa.GenerateKey(rand.Reader, 2048) + framework.privateKey, err = rsa.GenerateKey(cryptorand.Reader, 2048) require.NoError(t, err) framework.publicKey = &framework.privateKey.PublicKey @@ -622,7 +622,7 @@ func (f *S3IAMTestFramework) GenerateUniqueBucketName(prefix string) string { testName = strings.ReplaceAll(testName, "_", "-") // Add random suffix to handle parallel tests - randomSuffix := rand.Intn(10000) + randomSuffix := mathrand.Intn(10000) return fmt.Sprintf("%s-%s-%d", prefix, testName, randomSuffix) }