diff --git a/hooks/test/test_test.go b/hooks/test/test_test.go index 9601491..e4e5127 100644 --- a/hooks/test/test_test.go +++ b/hooks/test/test_test.go @@ -41,8 +41,8 @@ func TestAllHooks(t *testing.T) { func TestLoggingWithHooksRace(t *testing.T) { - rand.Seed(time.Now().Unix()) - unlocker := rand.Int() % 100 + r := rand.New(rand.NewSource(time.Now().UnixNano())) + unlocker := r.Intn(100) assert := assert.New(t) logger, hook := NewNullLogger()