void storeRandomFile() throws Exception {
  File f=new File(System.getProperty("user.home") + "/temp/rand.txt");
  FileOutputStream out=new FileOutputStream(f);
  CalculateHashConstant test=new CalculateHashConstant();
  byte[] buff=new byte[4];
  for (int i=0; i < 10000000 / 8; i++) {
    int y=test.hash(i);
    writeInt(buff,0,y);
    out.write(buff);
  }
  out.close();
}

void storeRandomFile ( ) throws Exception { File f = new File ( System . getProperty ( "user.home" ) + "/temp/rand.txt" ) ; FileOutputStream out = new FileOutputStream ( f ) ; CalculateHashConstant test = new CalculateHashConstant ( ) ; byte [ ] buff = new byte [ 4 ] ; for ( int i = 0 ; i < 10000000 / 8 ; i ++ ) { int y = test . hash ( i ) ; writeInt ( buff , 0 , y ) ; out . write ( buff ) ; } out . close ( ) ; }
store a random file to be analyzed by the diehard test .
