Merge pull request #71170 from atlassian/rand-cleanup2
Cleanup math/rand package usage
This commit is contained in:
@@ -1344,8 +1344,7 @@ func LoadClientset() (*clientset.Clientset, error) {
|
||||
// need to use such a function and can instead
|
||||
// use the UUID utility function.
|
||||
func RandomSuffix() string {
|
||||
r := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
return strconv.Itoa(r.Int() % 10000)
|
||||
return strconv.Itoa(rand.Intn(10000))
|
||||
}
|
||||
|
||||
// ExpectEqual expects the specified two are the same, otherwise an exception raises
|
||||
|
||||
Reference in New Issue
Block a user