Skip to content

Commit 9a97ab3

Browse files
Switching from crypto/rand to math/rand to avoid blocking
Signed-off-by: Dave Henderson <[email protected]>
1 parent b382b6f commit 9a97ab3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

diff/walking/differ.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ package walking
1818

1919
import (
2020
"context"
21-
"crypto/rand"
2221
"encoding/base64"
2322
"fmt"
2423
"io"
24+
"math/rand"
2525
"time"
2626

2727
"github.com/containerd/containerd/archive"

rootfs/apply.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ package rootfs
1818

1919
import (
2020
"context"
21-
"crypto/rand"
2221
"encoding/base64"
2322
"fmt"
23+
"math/rand"
2424
"time"
2525

2626
"github.com/containerd/containerd/diff"

services/leases/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ package leases
1818

1919
import (
2020
"context"
21-
"crypto/rand"
2221
"encoding/base64"
2322
"fmt"
23+
"math/rand"
2424
"time"
2525

2626
"google.golang.org/grpc"

0 commit comments

Comments
 (0)