Add simple state-based functions to og.

Useful for pure random generation that doesn't need to be
cryptographic....