To be honest, I don't really remember! :) I don't think there was any
amazing magic to it other than getting a integer number large enough
to have a good chance of being unique. A hash of the source IP address
and user client might have been a better choice in hindsight. Ideally
something like the system you implemented for you multiplayer JACL is
best where the user creates a username and password. That way the
system guarantees that they are all unique and to player can pretend
to be another user.
Regards,
Stuart