mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
The helper function is deprecated. The package gvisor.dev/gvisor/pkg/rand depends on crypto/rand which performs worse thatn math/rand, the changes are fine since they are not at any gVisor's hot path. The ultimate goal is to migrate math/rand to math/rand/v2.
31 lines
798 B
Python
31 lines
798 B
Python
load("//tools:defs.bzl", "go_library")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
go_library(
|
|
name = "testutil",
|
|
testonly = True,
|
|
srcs = ["testutil.go"],
|
|
visibility = [
|
|
"//pkg/tcpip/network:__pkg__",
|
|
"//pkg/tcpip/network/arp:__pkg__",
|
|
"//pkg/tcpip/network/internal/fragmentation:__pkg__",
|
|
"//pkg/tcpip/network/ipv4:__pkg__",
|
|
"//pkg/tcpip/network/ipv6:__pkg__",
|
|
"//pkg/tcpip/tests/integration:__pkg__",
|
|
],
|
|
deps = [
|
|
"//pkg/buffer",
|
|
"//pkg/rand",
|
|
"//pkg/tcpip",
|
|
"//pkg/tcpip/checker",
|
|
"//pkg/tcpip/header",
|
|
"//pkg/tcpip/link/channel",
|
|
"//pkg/tcpip/stack",
|
|
"@com_github_google_go_cmp//cmp:go_default_library",
|
|
],
|
|
)
|