1 /**************************************************************************
3 * Copyright (C) 1995 Silicon Graphics, Inc.
5 * These coded instructions, statements, and computer programs were
6 * developed by SGI for public use. If any changes are made to this code
7 * please try to get the changes back to the author. Feel free to make
8 * modifications and changes to the code and release it.
10 **************************************************************************/
12 /* FUZZ: disable check_for_math_include */
13 /* FUZZ: disable check_for_improper_main_declaration */
20 #include <sys/types.h>
25 main(const int argc
, char* argv
[])
35 printf("usage: %s file_size_in_bytes[K|M] name\n", argv
[0]);
39 if ((file
= fopen(argv
[2], "w")) == 0)
47 for (cp
= argv
[1]; *cp
; cp
++)
62 for (i
= 0; i
< size
; i
++)
64 my_random
= ((RANDOM() % 94) + 33);
65 fputc((char)my_random
, file
);