Pure RNG
chpatrick opened this issue · comments
Hi,
I'm not too familiar with PCG, so sorry if this is a stupid question, but I was looking around at the code and I noticed that for the Fast generator the state appears to be just a Word64. In that case, is there any point having this persistent Gen (Ptr FrozenGen)
state? Given that you could pass around the whole state in just as much memory as this pointer, wouldn't it be better to just pass the state and be completely pure? I saw the Fast.Pure
variant but that seems to MutableByteArray
instead, which seems even stranger.
Ah, I see that FrozenGen is a RandomGen
itself. :)