Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: RngSeed & ForkableSeed traits #23

Merged
merged 4 commits into from
Jul 23, 2024
Merged

feat: RngSeed & ForkableSeed traits #23

merged 4 commits into from
Jul 23, 2024

Conversation

Bluefinger
Copy link
Owner

This PR adds a RngSeed component type for containing the seed value of an EntropyComponent, plus establishing the relationship between the two components so that adding or overwriting a RngSeed component to an entity will add/overwrite an EntropyComponent of the same PRNG type. This is implemented using component hooks and will be automatically initialised when using the plugin to register entropy source types.

With this, I've also added extra forking traits to enable PRNG sources to fork to a seed component, whether of the same or different algorithm type.

I've also restructured the integration tests to build into a single test binary, but have separate modules for clarity purpose's sake. This should allow the integration test suite to grow considerably without needing to generate a separate binary for each integration test module.

@Bluefinger Bluefinger added the enhancement New feature or request label Jul 23, 2024
@Bluefinger Bluefinger merged commit abfd069 into main Jul 23, 2024
11 checks passed
@Bluefinger Bluefinger deleted the seed-sources branch December 30, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant