This was requested in #6 and #7. It is possible in theory to achieve it with linear memory consumption by storing random seeds.