don't truncate gameID

In some cases games were created with 32-bit ids, and sometimes only
20 bits were used.
This commit is contained in:
Eric House 2022-12-27 17:35:44 -08:00
parent fdbd404f37
commit 5175775b1d

View file

@ -1312,8 +1312,9 @@ public class GameUtils {
public static String formatGameID( int gameID )
{
Assert.assertTrue( 0 != gameID );
// substring: Keep it short so fits in SMS better
return String.format( "%X", gameID ).substring( 0, 5 );
// I used to truncate this for smaller SMS messages, but gameID has
// become important enough that we want to use all 32 bits.
return String.format( "%X", gameID );
}
public static String makeRandomID()
@ -1322,7 +1323,7 @@ public class GameUtils {
return formatGameID( rint );
}
public static int newGameID()
private static int newGameID()
{
int rint;
do {