Merge pull request #123969 from liangyuanpeng/cleanup_rand

cleanup: delete rand.Seed(time.Now().UnixNano()) and using global number generator.
This commit is contained in:
Kubernetes Prow Robot
2024-04-18 02:10:26 -07:00
committed by GitHub
9 changed files with 0 additions and 24 deletions

View File

@@ -17,14 +17,11 @@ limitations under the License.
package volume
import (
"math/rand"
"testing"
"time"
"k8s.io/kubernetes/test/integration/framework"
)
func TestMain(m *testing.M) {
rand.Seed(time.Now().UnixNano())
framework.EtcdMain(m.Run)
}