diff --git a/cryptorand/errors_test.go b/cryptorand/errors_test.go index 6abc214387..cafd2156db 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 (