Extract _PseudoRandomGeneratorBase class.

Extracted class contains code shared by XORWOW and MRG23k3a generators.
Those two generators share most of the code; MRG23k3a allows for
skipping subsequences.