We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5d2cfcc + 857f924 commit 21bae50Copy full SHA for 21bae50
1 file changed
hooks/test/test_test.go
@@ -41,8 +41,8 @@ func TestAllHooks(t *testing.T) {
41
42
func TestLoggingWithHooksRace(t *testing.T) {
43
44
- rand.Seed(time.Now().Unix())
45
- unlocker := rand.Int() % 100
+ r := rand.New(rand.NewSource(time.Now().UnixNano()))
+ unlocker := r.Intn(100)
46
47
assert := assert.New(t)
48
logger, hook := NewNullLogger()
0 commit comments