Generates a dummy file, of a give size in bytes.
In order to test speed or relaiability of software that interacts with the file system you want to handle files of different sizez that contain randomly generated information. This files are commonly known as dummy files. Dummy in that their content is not UTF-8 valid, or json or XML, which makes them less predictable and more usefull for general testing.
Dummy gen can be used both as a stand alone app from the command line:
dummy_gen out.dat 1234
Writes 1234 bytes to a file named out.dat
But then, it can also be used as a library, having a simple API:
use dummy_gen::{write, Result};
fn main() -> Reuslt<()> {
write(output_file_name, output_file_size)?;
}