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: Enable partial and full randomised states for WyHash #7

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

Bluefinger
Copy link
Owner

Adds a feature to enable full randomised state for WyHash, allowing for randomised seed AND secret, versus partial randomisation where only the seed is random and the default secret is used. This allows control over whether one wants to enable the more expensive but more secure option of initialising the entire state, or for partial randomisation in favour of speed.

The difference in perf between partial and full randomisation is 1.2 nanoseconds versus 228 microseconds. This is excluding the time it takes to source entropy from hardware sources.

@Bluefinger Bluefinger added the enhancement New feature or request label Mar 26, 2024
@Bluefinger Bluefinger merged commit acb1d74 into main Mar 26, 2024
10 checks passed
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