public synchronized String generateTag(){
  return Integer.toHexString(rand.nextInt());
}

public synchronized String generateTag ( ) { return Integer . toHexString ( rand . nextInt ( ) ) ; }
generate a tag for a from header or to header . just return a random 4 digit integer ( should be enough to avoid any clashes ! ) tags only need to be unique within a call .
