aboutsummaryrefslogtreecommitdiffstats
path: root/prog/alloc_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/alloc_test.go')
-rw-r--r--prog/alloc_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/prog/alloc_test.go b/prog/alloc_test.go
index 757dbd8ef..c1d0317a5 100644
--- a/prog/alloc_test.go
+++ b/prog/alloc_test.go
@@ -6,6 +6,8 @@ package prog
import (
"fmt"
"testing"
+
+ "github.com/google/syzkaller/pkg/testutil"
)
func TestMemAlloc(t *testing.T) {
@@ -85,7 +87,7 @@ func TestVmaAlloc(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- r := newRand(target, randSource(t))
+ r := newRand(target, testutil.RandSource(t))
va := newVmaAlloc(1000)
for i := 0; i < 30; i++ {
size := r.rand(4) + 1