public static synchronized String generateBranchId() { try { if (null == digester) digester = MessageDigest.getInstance("MD5");  long num = ++counter + (int)( Math.random() * 10000) + System.currentTimeMillis(); byte bid[] = digester.digest(Long.toString(num).getBytes());  return SIPConstants.BRANCH_MAGIC_COOKIE + Utils.toHexString(bid); } catch (NoSuchAlgorithmException ex) { return null; }
public static String generateBranchId() { long num = rand.nextLong() + Utils.counter ++ + System.currentTimeMillis(); byte bid[] = digester.digest(Long.toString(num).getBytes());  return SIPConstants.BRANCH_MAGIC_COOKIE + Utils.toHexString(bid);
	public static synchronized String generateBranchId() {		try {			if (null == digester)				digester = MessageDigest.getInstance("MD5");						long num = ++counter + (int)( Math.random() * 10000)					+ System.currentTimeMillis();			byte bid[] = digester.digest(Long.toString(num).getBytes());			// prepend with a magic cookie to indicate we are bis09 compatible.			return SIPConstants.BRANCH_MAGIC_COOKIE + Utils.toHexString(bid);		} catch (NoSuchAlgorithmException ex) {			return null;		}	}