diff --git a/op-node/testutils/random.go b/op-node/testutils/random.go
index c75d4140d1e7ff25a91cfd87cb7c6e02ada51fbf..9e50adaad960554070eddd816eefc3d638e9e483 100644
--- a/op-node/testutils/random.go
+++ b/op-node/testutils/random.go
@@ -14,6 +14,13 @@ import (
 	"github.com/ethereum/go-ethereum/crypto"
 )
 
+func RandomBool(rng *rand.Rand) bool {
+	if b := rng.Intn(2); b == 0 {
+		return false
+	}
+	return true
+}
+
 func RandomHash(rng *rand.Rand) (out common.Hash) {
 	rng.Read(out[:])
 	return