aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/csource_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/csource/csource_test.go')
-rw-r--r--pkg/csource/csource_test.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go
index bfeb8f6a7..2d047cc10 100644
--- a/pkg/csource/csource_test.go
+++ b/pkg/csource/csource_test.go
@@ -12,7 +12,6 @@ import (
"strings"
"sync/atomic"
"testing"
- "time"
"github.com/google/syzkaller/pkg/testutil"
"github.com/google/syzkaller/prog"
@@ -59,12 +58,7 @@ func TestGenerate(t *testing.T) {
}
func testTarget(t *testing.T, target *prog.Target, full bool) {
- seed := time.Now().UnixNano()
- if os.Getenv("CI") != "" {
- seed = 0 // required for deterministic coverage reports
- }
- rs := rand.NewSource(seed)
- t.Logf("seed=%v", seed)
+ rs := testutil.RandSource(t)
p := target.Generate(rs, 10, target.DefaultChoiceTable())
// Turns out that fully minimized program can trigger new interesting warnings,
// e.g. about NULL arguments for functions that require non-NULL arguments in syz_ functions.