Skip to content

Add support for Supplier<Random> injection.#19

Merged
dweiss merged 1 commit into
mainfrom
random-supplier
Apr 8, 2026
Merged

Add support for Supplier<Random> injection.#19
dweiss merged 1 commit into
mainfrom
random-supplier

Conversation

@dweiss

@dweiss dweiss commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

This adds support for injecting Supplier parameter resolver. This supplier can be safely passed to other threads within the test - any Random acquired from a supplier is tied to the calling thread (and initialized with the same starting seed, for limited reproducibility).

This is a more elegant (sort of) replacement for the thread-local per-thread context random in the previous version.

@dweiss dweiss added this to the 0.2.0 milestone Apr 8, 2026
@dweiss dweiss self-assigned this Apr 8, 2026
@dweiss dweiss merged commit 3c035de into main Apr 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant