summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/loader
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2018-06-15 15:35:09 -0700
committerShentubot <shentubot@google.com>2018-06-15 15:36:00 -0700
commitbd2d1aaa16474202b1a2c1edbf62e6782fa2dc36 (patch)
tree06e24568123a156d70ab3da56eb66c17afdc6910 /pkg/sentry/loader
parent437890dc4b6987a64ac98766c752ce64091757dc (diff)
Replace crypto/rand with internal rand package
PiperOrigin-RevId: 200784607 Change-Id: I39aa6ee632936dcbb00fc298adccffa606e9f4c0
Diffstat (limited to 'pkg/sentry/loader')
-rw-r--r--pkg/sentry/loader/BUILD1
-rw-r--r--pkg/sentry/loader/loader.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/pkg/sentry/loader/BUILD b/pkg/sentry/loader/BUILD
index 08cb3a777..b7aebd9ec 100644
--- a/pkg/sentry/loader/BUILD
+++ b/pkg/sentry/loader/BUILD
@@ -39,6 +39,7 @@ go_library(
"//pkg/binary",
"//pkg/cpuid",
"//pkg/log",
+ "//pkg/rand",
"//pkg/refs",
"//pkg/sentry/arch",
"//pkg/sentry/context",
diff --git a/pkg/sentry/loader/loader.go b/pkg/sentry/loader/loader.go
index a68ab33e7..3cda0fe6f 100644
--- a/pkg/sentry/loader/loader.go
+++ b/pkg/sentry/loader/loader.go
@@ -17,13 +17,13 @@ package loader
import (
"bytes"
- "crypto/rand"
"io"
"path"
"gvisor.googlesource.com/gvisor/pkg/abi"
"gvisor.googlesource.com/gvisor/pkg/abi/linux"
"gvisor.googlesource.com/gvisor/pkg/cpuid"
+ "gvisor.googlesource.com/gvisor/pkg/rand"
"gvisor.googlesource.com/gvisor/pkg/sentry/arch"
"gvisor.googlesource.com/gvisor/pkg/sentry/context"
"gvisor.googlesource.com/gvisor/pkg/sentry/fs"