Zarant / WoW_Hardcore

World of Warcraft addon for the Hardcore community
GNU General Public License v3.0
23 stars 35 forks source link

Fix random letter generation #536

Closed zdeyn closed 10 months ago

zdeyn commented 10 months ago

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.