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

Random seed handling is too perilous #160

Open
nealey opened this issue Mar 12, 2021 · 0 comments
Open

Random seed handling is too perilous #160

nealey opened this issue Mar 12, 2021 · 0 comments
Milestone

Comments

@nealey
Copy link
Member

nealey commented Mar 12, 2021

This just bit me in the rear: if you use the same seed for every puzzle, and the first thing you do is pick an answer, you get the same answer words every time.

We should have mothd set $SEED_BASE to the original value of $SEED, and then for every call out mkpuzzle or mkcategory, set SEED=${SEED_BASE}/${cat}/${points}.

If people really want the raw seed, they can get it, but by default they should just use $SEED, which will be unique for every puzzle.

@nealey nealey modified the milestones: v4.0, v4.2 Mar 12, 2021
@nealey nealey modified the milestones: v4.2, v4.3.0 Apr 14, 2021
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

No branches or pull requests

1 participant