question: 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 ( ) ; }
target:  Store a random file to be analyzed by the Diehard test.