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

Seedable terrain #30

Merged
merged 11 commits into from
Feb 8, 2024
Merged

Seedable terrain #30

merged 11 commits into from
Feb 8, 2024

Conversation

Waridley
Copy link
Owner

@Waridley Waridley commented Feb 8, 2024

Automatically generates random 24-byte hashes and computes the base-64 encoding of them. At some point I will enable entering seeds manually. This implementation can accept any UTF8 string and hash it to generate the 24-byte seed, while saving the original string along side it for sharing. I will need some way to detect the difference between auto-generated base-64 hashes and manually-entered strings. I could potentially just try to parse the string as a base-64 hash, falling back to hashing the string if it fails, but I'm considering prepending a special character like ~ to designate a randomly-generated hash.

@Waridley Waridley merged commit 50e1052 into main Feb 8, 2024
3 of 4 checks passed
@Waridley Waridley deleted the seeding branch February 8, 2024 18:58
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