Команды SFK


    1        2        3        4        5        6        7        8        9        10    

Раздел 8. Development - Разработка
bin-to-src | fuzz | inst | make-random-file | patch | sample |

Help:   Рус   |   Eng        

Команда: make-random-file
sfk make-random-file outfilename size [-text] [-seed=n]

   creates a file full of random binary data for testing.
   size parameters like 5m, 100k, 9000b are supported.
   type "sfk dupfind" for details on size parameters.

   options
      -text     create text data instead of binary.
      -char s   create file filled with character s.
                e.g. -char " " fills with blanks.
      -seed=n   specify randomizer seed. default is
                to use a time based seed.
      -lock=n   wait n msec before closing the file,
                to keep the file locked for testing.

   see also
      sfk make-zero-file    create file with null bytes

   examples
      sfk make-random-file tmp1.dat 1m -seed=1234
         produce a file tmp1.dat with 1 mbyte of size.
      sfk make-random-file mydir\foo.txt 1k -text
         create folder mydir, and foo.txt within.