]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/sysrand: skip TestNoGetrandom without cgo
authorFilippo Valsorda <filippo@golang.org>
Thu, 9 Jan 2025 23:06:43 +0000 (00:06 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 28 Jan 2025 22:19:31 +0000 (14:19 -0800)
commit7764c502e28e42279d033719b058690ca8fbaa44
tree85bb4dc0f9d64d2abd7dcbf2388707dcfbe20ee1
parent50455385b0e668656cac03d3012e48e071df6aa4
crypto/internal/sysrand: skip TestNoGetrandom without cgo

crypto/internal/sysrand/internal/seccomp needs cgo to disable getrandom.
Before this change, "CGO_ENABLED=0 go test crypto/internal/sysrand"
would fail on Linux.

Change-Id: I6a6a465685b480c846e5479da0659e90ab7f3a65
Reviewed-on: https://go-review.googlesource.com/c/go/+/642737
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Roland Shoemaker <roland@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
src/crypto/internal/sysrand/rand_linux_test.go