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

Iss1237: Hash keys in Parson's proof problems #1248

Merged
merged 3 commits into from
Aug 15, 2024
Merged

Iss1237: Hash keys in Parson's proof problems #1248

merged 3 commits into from
Aug 15, 2024

Conversation

smmercuri
Copy link
Collaborator

Keys in a two dimensional Parson's proof_steps array are now hashed in Maxima using Base64 hashing (reversibility is required). Within Question Variables:

proof_steps: [
    ["1", "<proof step one>"],
    ["2", "<proof step two>"],
    ...
    ["n", "<proof step n>"]
];
proof_steps: random_permutation(proof_steps);

Authors of Parson's questions should now use parsons_steps instead of stackjson_stringify. Within Question Text:

[[parsons]]
{# parsons_steps(proof_steps) #}
[[/parsons]]

This fixes the randomisation bug for numerical keys (Issue #1237) and moreover hides author keys from inspection.

@sangwinc sangwinc merged commit 290797d into dev Aug 15, 2024
0 of 10 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.

2 participants