Files
Kevin KrakauerandgVisor bot d01751e25e sentry: use a stronger RNG for address space randomization
Since everything fits inside an int64, we avoid using crypto/rand.Int, which
can allocate and uses the much more complex big.Int.

PiperOrigin-RevId: 580050587
2023-11-06 21:57:14 -08:00

27 lines
471 B
Python

load("//tools:defs.bzl", "go_library", "go_test")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "rand",
srcs = [
"rand.go",
"rand_linux.go",
"rng.go",
],
visibility = ["//:sandbox"],
deps = [
"//pkg/sync",
"@org_golang_x_sys//unix:go_default_library",
],
)
go_test(
name = "rand_test",
srcs = ["rng_test.go"],
library = ":rand",
)