Skip to content

Fix random letter generation#536

Merged
zdeyn merged 4 commits into
Zarant:masterfrom
zdeyn:master
Nov 19, 2023
Merged

Fix random letter generation#536
zdeyn merged 4 commits into
Zarant:masterfrom
zdeyn:master

Conversation

@zdeyn
Copy link
Copy Markdown
Collaborator

@zdeyn zdeyn commented Nov 19, 2023

In very unlikely cases, the old generator could roll two or three consecutive zeros and thereby fail to generate a separator character. This leads to invalid strings.

I've been able to repair the strings during reading (as the two consecutive bytes cause a decoding failure that can be detected and fixed on-the-fly), but this fixes it moving forward.

@zdeyn zdeyn merged commit 3a7381a into Zarant:master Nov 19, 2023
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