summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tcpip')
-rw-r--r--pkg/tcpip/network/hash/BUILD5
-rw-r--r--pkg/tcpip/network/hash/hash.go2
-rw-r--r--pkg/tcpip/transport/tcp/BUILD1
-rw-r--r--pkg/tcpip/transport/tcp/accept.go2
-rw-r--r--pkg/tcpip/transport/tcp/connect.go2
-rw-r--r--pkg/tcpip/transport/tcp/endpoint.go2
6 files changed, 9 insertions, 5 deletions
diff --git a/pkg/tcpip/network/hash/BUILD b/pkg/tcpip/network/hash/BUILD
index 96805c690..1e76fed36 100644
--- a/pkg/tcpip/network/hash/BUILD
+++ b/pkg/tcpip/network/hash/BUILD
@@ -7,5 +7,8 @@ go_library(
srcs = ["hash.go"],
importpath = "gvisor.googlesource.com/gvisor/pkg/tcpip/network/hash",
visibility = ["//visibility:public"],
- deps = ["//pkg/tcpip/header"],
+ deps = [
+ "//pkg/rand",
+ "//pkg/tcpip/header",
+ ],
)
diff --git a/pkg/tcpip/network/hash/hash.go b/pkg/tcpip/network/hash/hash.go
index e5a696158..60227d515 100644
--- a/pkg/tcpip/network/hash/hash.go
+++ b/pkg/tcpip/network/hash/hash.go
@@ -6,9 +6,9 @@
package hash
import (
- "crypto/rand"
"encoding/binary"
+ "gvisor.googlesource.com/gvisor/pkg/rand"
"gvisor.googlesource.com/gvisor/pkg/tcpip/header"
)
diff --git a/pkg/tcpip/transport/tcp/BUILD b/pkg/tcpip/transport/tcp/BUILD
index d0eb8b8bd..f38f58e87 100644
--- a/pkg/tcpip/transport/tcp/BUILD
+++ b/pkg/tcpip/transport/tcp/BUILD
@@ -51,6 +51,7 @@ go_library(
importpath = "gvisor.googlesource.com/gvisor/pkg/tcpip/transport/tcp",
visibility = ["//visibility:public"],
deps = [
+ "//pkg/rand",
"//pkg/sleep",
"//pkg/state",
"//pkg/tcpip",
diff --git a/pkg/tcpip/transport/tcp/accept.go b/pkg/tcpip/transport/tcp/accept.go
index e78a56cf5..85adeef0e 100644
--- a/pkg/tcpip/transport/tcp/accept.go
+++ b/pkg/tcpip/transport/tcp/accept.go
@@ -5,7 +5,6 @@
package tcp
import (
- "crypto/rand"
"crypto/sha1"
"encoding/binary"
"hash"
@@ -13,6 +12,7 @@ import (
"sync"
"time"
+ "gvisor.googlesource.com/gvisor/pkg/rand"
"gvisor.googlesource.com/gvisor/pkg/sleep"
"gvisor.googlesource.com/gvisor/pkg/tcpip"
"gvisor.googlesource.com/gvisor/pkg/tcpip/header"
diff --git a/pkg/tcpip/transport/tcp/connect.go b/pkg/tcpip/transport/tcp/connect.go
index 0571ceaa5..9aaabe0b1 100644
--- a/pkg/tcpip/transport/tcp/connect.go
+++ b/pkg/tcpip/transport/tcp/connect.go
@@ -5,11 +5,11 @@
package tcp
import (
- "crypto/rand"
"sync"
"sync/atomic"
"time"
+ "gvisor.googlesource.com/gvisor/pkg/rand"
"gvisor.googlesource.com/gvisor/pkg/sleep"
"gvisor.googlesource.com/gvisor/pkg/tcpip"
"gvisor.googlesource.com/gvisor/pkg/tcpip/buffer"
diff --git a/pkg/tcpip/transport/tcp/endpoint.go b/pkg/tcpip/transport/tcp/endpoint.go
index 3f87c4cac..b21c2b4ab 100644
--- a/pkg/tcpip/transport/tcp/endpoint.go
+++ b/pkg/tcpip/transport/tcp/endpoint.go
@@ -5,12 +5,12 @@
package tcp
import (
- "crypto/rand"
"math"
"sync"
"sync/atomic"
"time"
+ "gvisor.googlesource.com/gvisor/pkg/rand"
"gvisor.googlesource.com/gvisor/pkg/sleep"
"gvisor.googlesource.com/gvisor/pkg/tcpip"
"gvisor.googlesource.com/gvisor/pkg/tcpip/buffer"