Asking on here because I'm not too familiar with the rand ecosystem and searching around didn't find me anything.
I am trying to build a system that uses a seedable RNG that is stable in the face of omitting/replacing some random operations. The plan is to make each operation consume a fixed amount of 'randomness', perhaps by filling a buffer with random bytes, and then generating random values out of it. (If the bytes are exhausted, I will stop then making random decisions.) If I want to skip the operation, I would just fill the buffer and then move on, so that the next operation continues from the same random state.
The engineering problem is that I want this buffer to have a generic RNG API so I can produce data of whatever type I need. So I'm curious if anybody has already done this, or knows of a good way to go about it?
Thanks.
EDIT: Perhaps this was a premature question... It looks like all I have to do is implement rand::RngCore
around a buffer, and everything else should fall out naturally...