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

Changes to seeded RNG #1

Open
wants to merge 3 commits into
base: tx_randomizer_and_challenges
Choose a base branch
from

Conversation

tertu-m
Copy link

@tertu-m tertu-m commented Jan 3, 2024

Some changes to random number generation.
Importantly, there's now a notion of a "seeded sequence". This sequence always starts at the same place for a given seed but it continues onward for as many calls as needed.

Description

HQ_RANDOM is also now supported, using a different stream for seeded numbers.
Chaos mode works slightly differently. If allowed, it instead modifies the input seed with a random value. The difference should be close to unnoticeable in practice.
As a side effect, some extra whitespace was removed as well. Oops.

Feature(s) this PR does NOT handle:

None.

Discord contact info

tertu

@tertu-m
Copy link
Author

tertu-m commented Jan 3, 2024

Don't merge this yet. I have some stuff coming that I need to commit.

@tertu-m
Copy link
Author

tertu-m commented Jan 4, 2024

It should be good to merge now.

@tertu-m tertu-m closed this Jan 4, 2024
@tertu-m
Copy link
Author

tertu-m commented Jan 4, 2024

i need to check a bit of code.

@tertu-m tertu-m reopened this Jan 4, 2024
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