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

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