I have used /dev/zero and /dev/random to generate files of certain size.
However, is there a way to control variability of generated files?
I would like to create few files that would have same uncompressed size, but different compressed size (compression ratio).
/dev/randomif you want to generate cryptagraphic keys as it may block when the entropy pool is exhausted. For normal operations like file generation use/dev/urandom./dev/urandomas well.