Skip to content

Remove TestRandom#9006

Open
macladson wants to merge 4 commits intosigp:unstablefrom
macladson:remove-test-random
Open

Remove TestRandom#9006
macladson wants to merge 4 commits intosigp:unstablefrom
macladson:remove-test-random

Conversation

@macladson
Copy link
Member

@macladson macladson commented Mar 19, 2026

Issue Addressed

We have a legacy TestRandom trait which generates random types for testing and fuzzing.
This function overlaps with arbitrary which is used very commonly in the ecosystem.

Proposed Changes

Remove TestRandom and generate random type instances using Arbitrary.

Additional Info

We have two git patches on ethereum_ssz and ssz_types to update some upstream arbitrary instances to be more correct. Once these have been each added into a release we can remove these patches.

There are a few situations where we include a self-referential dev-dependency like this:

types = { path = ".", features = ["arbitrary"] }

This forces the arbitrary feature when we run any tests which prevents us from skipping arbitrary tests, however we may want to remove this and make it more targeted, so certain tests run with it or without it.

@macladson macladson requested a review from jxs as a code owner March 19, 2026 13:21
@macladson macladson added code-quality work-in-progress PR is a work-in-progress labels Mar 19, 2026
@macladson macladson changed the title Remove test random Remove TestRandom Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-quality work-in-progress PR is a work-in-progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant