Add 'pregenerated' mode, which reads from a pregenerated buffer of random data