Merge pull request #2454 from hairyhenderson/use-math-rand-instead-of-crypto-rand

Switching from crypto/rand to math/rand to avoid blocking
This commit is contained in:
Phil Estes 2018-07-12 11:40:16 -04:00 committed by GitHub
commit cb4bf2003f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -18,10 +18,10 @@ package walking
import ( import (
"context" "context"
"crypto/rand"
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"io" "io"
"math/rand"
"time" "time"
"github.com/containerd/containerd/archive" "github.com/containerd/containerd/archive"

View File

@ -18,9 +18,9 @@ package rootfs
import ( import (
"context" "context"
"crypto/rand"
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"math/rand"
"time" "time"
"github.com/containerd/containerd/diff" "github.com/containerd/containerd/diff"

View File

@ -18,9 +18,9 @@ package leases
import ( import (
"context" "context"
"crypto/rand"
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"math/rand"
"time" "time"
"google.golang.org/grpc" "google.golang.org/grpc"