diff --git a/cryptorand/errors_test.go b/cryptorand/errors_test.go index 6abc2143875e2..cafd2156db620 100644 --- a/cryptorand/errors_test.go +++ b/cryptorand/errors_test.go @@ -1,3 +1,7 @@ +//go:build !go1.24 + +// Testing `rand.Reader.Read` for errors will panic in Go 1.24 and later. + package cryptorand_test import (