private static void generateTransactionID(TransactionID tid,int nb){
  long left=System.currentTimeMillis();
  long right=random.nextLong();
  int b=nb / 2;
  for (int i=0; i < b; i++) {
    tid.transactionID[i]=(byte)((left >> (i * 8)) & 0xFFL);
    tid.transactionID[i + b]=(byte)((right >> (i * 8)) & 0xFFL);
  }
  tid.hashCode=(tid.transactionID[3] << 24 & 0xFF000000) | (tid.transactionID[2] << 16 & 0x00FF0000) | (tid.transactionID[1] << 8 & 0x0000FF00)| (tid.transactionID[0] & 0x000000FF);
}

private static void generateTransactionID ( TransactionID tid , int nb ) { long left = System . currentTimeMillis ( ) ; long right = random . nextLong ( ) ; int b = nb / 2 ; for ( int i = 0 ; i < b ; i ++ ) { tid . transactionID [ i ] = ( byte ) ( ( left > > ( i * 8 ) ) & 0xFFL ) ; tid . transactionID [ i + b ] = ( byte ) ( ( right > > ( i * 8 ) ) & 0xFFL ) ; } tid . hashCode = ( tid . transactionID [ 3 ] << 24 & 0xFF000000 ) | ( tid . transactionID [ 2 ] << 16 & 0x00FF0000 ) | ( tid . transactionID [ 1 ] << 8 & 0x0000FF00 ) | ( tid . transactionID [ 0 ] & 0x000000FF ) ; }
generates a random transaction id
