Skip to main content

create_random_file

Function create_random_file 

Source
pub fn create_random_file(
    path: impl AsRef<Path>,
    size: usize,
    seed: u64,
) -> usize
Expand description

Creates or overwrites a single file in dir with size bytes of random data. Panics on any I/O error. Returns the total number of bytes written (=size).