Module uuid_human_hash

Source
Expand description

A way to “hash” the 128-bit UUIDs into two 3-letter words, such as eat-fox, so that humans can more easily refer to lobbies or players (instead of having to read the hex-representation of the UUIDs).

Constants§

WORDS1
WORDS2

Functions§

uuid_human_hash
The last 5 bits of the sum of all bytes in the uuid are the index into the WORDS2 list, The 5 bits before those are the index into the WORDS1 list. Output is WORDS1[i], a dash, then WORDS2[j].