5 ##---------------------------------------------------------------------------##
8 ## Markus F.X.J. Oberhumer <markus@oberhumer.com>
11 ## Create incompressible files for compression test
13 ## Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer
15 ##---------------------------------------------------------------------------##
20 substr($x,$i,1) = pack('C',rand(256));
24 for $i (1,2,4,8,16,32,64) {
25 $name = sprintf("u%04d.dat",$i);
26 open(OUTFILE
,">$name") || die "$0: cannot open '$name': $!";
28 print OUTFILE
substr($x,0,$i*1024);