public String generateNewTag ( ) { // This scheme of using random numbers to generate a // unique tag has a small probability of // causing duplicate tags. // TODO at some point, we may want to change it. int r = parent . getRandom ( ) . nextInt ( ) ; r = ( r < 0 ) ? 0 - r : r ; // generate a positive number // incorporate registration/session ID (myRegistrationId) into all tags // from this // client? (for jiplet call identification purposes) return Integer . toString ( r ) ; }
Generates a newly generated unique tag ID .