diff options
author | Michael Pratt <mpratt@google.com> | 2018-06-15 15:35:09 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-06-15 15:36:00 -0700 |
commit | bd2d1aaa16474202b1a2c1edbf62e6782fa2dc36 (patch) | |
tree | 06e24568123a156d70ab3da56eb66c17afdc6910 /pkg/dhcp | |
parent | 437890dc4b6987a64ac98766c752ce64091757dc (diff) |
Replace crypto/rand with internal rand package
PiperOrigin-RevId: 200784607
Change-Id: I39aa6ee632936dcbb00fc298adccffa606e9f4c0
Diffstat (limited to 'pkg/dhcp')
-rw-r--r-- | pkg/dhcp/BUILD | 1 | ||||
-rw-r--r-- | pkg/dhcp/client.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pkg/dhcp/BUILD b/pkg/dhcp/BUILD index b40860aac..3564da7e7 100644 --- a/pkg/dhcp/BUILD +++ b/pkg/dhcp/BUILD @@ -11,6 +11,7 @@ go_library( ], importpath = "gvisor.googlesource.com/gvisor/pkg/dhcp", deps = [ + "//pkg/rand", "//pkg/tcpip", "//pkg/tcpip/network/ipv4", "//pkg/tcpip/stack", diff --git a/pkg/dhcp/client.go b/pkg/dhcp/client.go index 37deb69ff..09b724b48 100644 --- a/pkg/dhcp/client.go +++ b/pkg/dhcp/client.go @@ -7,12 +7,12 @@ package dhcp import ( "bytes" "context" - "crypto/rand" "fmt" "log" "sync" "time" + "gvisor.googlesource.com/gvisor/pkg/rand" "gvisor.googlesource.com/gvisor/pkg/tcpip" "gvisor.googlesource.com/gvisor/pkg/tcpip/network/ipv4" "gvisor.googlesource.com/gvisor/pkg/tcpip/stack" |