cleanup: delete rand.Seed(time.Now().UnixNano()) and using global number generator.
see https://tip.golang.org/doc/go1.20 Signed-off-by: Lan Liang <gcslyp@gmail.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user