From d26ae4a1b00db9af2be06987c6a71850ce941bed Mon Sep 17 00:00:00 2001 From: Eric House Date: Sat, 11 Jul 2015 14:35:48 -0700 Subject: [PATCH] always assign a random invite ID --- .../XWords4/src/org/eehouse/android/xw4/NetLaunchInfo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetLaunchInfo.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetLaunchInfo.java index a06266ee2..3fd874009 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetLaunchInfo.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetLaunchInfo.java @@ -79,6 +79,8 @@ public class NetLaunchInfo { public NetLaunchInfo() { m_addrs = new CommsConnTypeSet(); + // Give it a random number. It may be overwritten, but so what. + inviteID = GameUtils.formatGameID( Utils.nextRandomInt() ); } public NetLaunchInfo( Context context, String data )