When running in single connection per process mode, multiple processes logging in as the same user and resource will potentially cause the first or second connection will be kicked off, depending on the server. (Some servers such as gmail.com already randomly modify the resource.)
This could be done with process ID but since that is a subtle information leak and also platform-dependent, I'm thinking of using some kind of random number. (But random numbers might clash, so I'm not sure what to do about that.)