ref: https://github.com/sigp/lighthouse/pull/7367 Implement `TestRandom` for a few types
consensus/types