Skip to content

Commit 06fe289

Browse files
committed
fix: use crypto/rand.Read
1 parent a1630a3 commit 06fe289

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cid_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cid
22

33
import (
44
"bytes"
5+
crand "crypto/rand"
56
"encoding/json"
67
"fmt"
78
"io"
@@ -441,7 +442,7 @@ func TestFuzzCid(t *testing.T) {
441442
buf := make([]byte, 128)
442443
for i := 0; i < 200; i++ {
443444
s := rand.Intn(128)
444-
rand.Read(buf[:s])
445+
crand.Read(buf[:s])
445446
_, _ = Cast(buf[:s])
446447
}
447448
}

0 commit comments

Comments
 (0)